I added the following line to my resolv.conf to allow for shorthand querying servers on my local domain.
search local.
If I have a server named myserver.local I can ping the server using "ping myserver", however if I try to "ping myserver.local" it stalls and fails to return an IP address. Pinging other hosts, such as google.com works as expected.
Is there a way that I can make both "ping myserver.local" and "ping myserver" work correctly?
Best Answer
You need to remove the . after local:
Assuming you have a dns resolver setup for your local domain, it should work as you're describing.