I'm trying to query the second nameserver on a local network to resolve local domain names to IP's.
Code:
$ ping ids.mydomain.loc
ping: unknown host mydomain.loc
However, querying the name server directly works:
Code:
$ nslookup hostname 10.0.0.53
Server: 10.0.0.53
Address: 10.0.0.53#53
Name: hostname.mydomain.loc
Address: 10.0.0.116
Here's /etc/resolv.conf
Code:
nameserver 123.123.123.123
nameserver 10.0.0.53
search ispdomain.com mydomain.loc
Analysing with 'dig' shows that only the first nameserver is queried. Why is this and how can I resolve it?
I'm using CentOS release 5.4.
Thanks