On Sun, 25 Apr 2010 07:50:25 +1000, James Lever <[email protected]> wrote:
> On 25/04/2010, at 7:44 AM, Robin Axelsson wrote:
> But for example
> $ nslookup www.google.com [1]
> works fine without delay, so the DNS resolution must be fine right?
> 
> ensure you can both ping, nslookup and dig. There are two different
> resolution mechanisms in play so you want to test both.
> cheers,James
> 


You should directly query the system name service switch (NSS), which is
what applications use for name resolution; ping is subject to other
factors. To do this:
# getent hosts <address of client>

The NSS configuration lives in /etc/nsswitch.conf, and is also affected by
whether the name-service-cache service is enabled.

The preferred way to query DNS is:
# host <address>
host is intended as a replacement for nslookup. Note that this is
different from what applications do, so you can use it to confirm a DNS
problem but it will not be useful for diagnosing other resolver issues.

-Albert

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to