[CentOS] Caching nameserver -- Name Services Cache Daemon (nscd)

Les Mikesell lesmikesell at gmail.com
Wed Aug 10 14:49:24 UTC 2005


On Wed, 2005-08-10 at 07:25, William Warren wrote:
> dig to localhost says:
> [root at enoch ~]# dig localhost

dig localhost
tells the system to ask the server(s) mentioned in /etc/resolve.conf
to resolve the name localhost.

What you want is:
dig @localhost
which queries the nameserver on the local machine to show you some
info from the root servers as a useful diagnostic to make sure
it can reach them.  If you are firewalled in a way that udp on
port 53 can't get back from the internet and you aren't configured
to use a forwarder that can get answers, you won't see the
root servers displayed.  You can also query for specific addresses:
dig @localhost www.sun.com

-- 
  Les Mikesell
   lesmikesell at gmail.com





More information about the CentOS mailing list