flip-mode wrote:Can someone explain this section from the resolv.conf man page:
On a normally configured system this file should not be necessary. The only name server to be queried will be on the local machine, the domain name is determined from the host name, and the domain search path is constructed from the domain name.
I am even more of a DNS noob than a *nix noob. Why would the local machine normally be the machine to be querried? I thought querries were always made to a nameserver?
A typical basic resolv.conf has a "domain" entry, "search" entry and a "nameserver" entry. Based on that manpage's wording, the implied configuration would be:
1) local machine runs a caching named (local caching DNS server, typically bind -- named_enable="YES" in rc.conf)
2) DNS queries go to the local caching name server (it has a list of the 13 root servers and can do recursive resolving itself)
3) The local machine's hostname is a fully qualified domain name
4) Queries for unqualified hostnames ("foo" rather than "foo.bar.com") use the domain suffix determined from this machine's FQDN
The wording is telling you how it gets those three components (domain, search and nameserver) when resolv.conf is empty. I'd only quibble with the implication that running local DNS server is a property of "normally configured systems," although it's not a bad idea.