9
4
I'm running Ubuntu 12.04 and I'm trying to ping the following systems:
- system0.oldcompany.com
- system1.fing.oldcompany.com
- system2.newcompany.com
- system3.thing.newcompany.com
My resolv.conf
# internal dns servers
nameserver 1.1.1.151
nameserver 1.1.1.152
search oldcompany.com fing.oldcompany.com newcompany.com thing.newcompany.com
#domain thing.newcompany.com
domain oldcompany.com
#domain fing.oldcompany.com
#domain newcompany.com
#nameserver 8.8.8.8 #commented out due to other issues
If I leave all of those lines uncommented, I won't be able to ping system0 or system1. How do I set it up so I can ping all 4 systems by just using its domain name? In Windows, it resolves every system.
ping system0
ping: unknown host system0
ping system1
ping: unknown host system1
I've been trying to read the man page on resolv.conf but I'm still having issues troubleshooting this problem. No one at my company uses Linux so unfortunately so I'm on my own.
Edit: Updated search so it's only 1 line and now I can ping system0 but still cannot ping system1. However, I can ping system1.fing because it's on the oldcompany domain.
Hi webmarc, I have all of my search domains on one line and only specified one domain but still have issues with system1. It does not seem to search the fing.oldcompany.com subdomain correctly. – SomeGuyOnAComputer – 2015-01-14T19:07:03.347