resolv.conf(4) manual page
Table of Contents
resolv.conf - configuration file for name server routines
The resolver configuration file contains information that is read by the
resolver routines the first time they are invoked in a process. The file
is designed to be human readable and contains a list of keyword-value pairs
that provide various types of resolver information of the form:
- keyword value
The different configuration options are:
- nameserver address
- The Internet
address (in dot (’.’) notation) of a name server that the resolver should
query. At least one name server should be listed. Up to MAXNS
(currently
three) name servers may be listed, in that case the resolver library queries
tries them in the order listed. The algorithm used is to try a name server,
and if the query times out, try the next until out of name servers, then
repeat trying all the name servers until a maximum number of retries are
made.
- domain name
- The default domain to append to names that do not have
a dot (’.’) in them. name should be immediately terminated by a newline character.
The keyword-value pair must appear on a single line, and the keyword (for
instance, nameserver) must start the line. The value follows the keyword,
separated by white space.
- /etc/resolv.conf
-
in.named(1M)
, gethostbyname(3N)
,
resolver(3N)
Table of Contents