July 5, 2011, 12:53 p.m.
posted by whitehat
The /etc/resolv.conf File
DNS clients (servers not running BIND) use the /etc/resolv.conf file to determine both the location of their DNS server and the domains to which they belong. The file generally has two columns; the first contains a keyword, and the second contains the desired values separated by commas. See Figure for a list of keywords.
Take a look at a sample configuration in which the client server's main domain is my-web-site.org, but it also is a member of domains another-web-site.org and my-web-business.org, which should be searched for shorthand references to other servers. Two name servers, 192.168.1.100 and 192.168.1.102, provide DNS name resolution:
search my-web-site.org another-web-site.org my-web-business.org nameserver 192.168.1.100 nameserver 192.168.1.102
The first domain listed after the search directive must be the home domain of your network, in this case my-web-site.org. Placing a domain and search entry in the /etc/resolv.conf is redundant, therefore.