RESOLVER(4) Domain/OS SysV RESOLVER(4)
NAME
resolver - resolver configuration file
SYNOPSIS
/etc/resolv.conf
DESCRIPTION
The resolver configuration file contains information that is read by the
resolver routines the first time they are invoked by a process. The file
is designed to be human-readable and contains a list of name-value pairs
that provide various types of resolver information.
This file is required on any system using the name server daemon, named,
either locally or remotely for Internet name-address resolution. The file
must reside on any host running named locally, but only a single line --
the domain keyword followed by the domain name -- is required. If the
host is not running named locally, the file is a link to /etc/resolv.conf
on the TCP/IP administrative host and must contain both the the domain
keyword, followed by the domain name, and the nameserver keyword,
followed by the IP address of the remote name server(s) that will answer
the local host's name queries.
The two configuration keywords are:
nameserver Followed by 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 3) name
servers may be listed, in that case the resolver library
queries tries them in the order listed. If no nameserver
entries are present, the default is to use the name server
on the local host. (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 Followed by a domain name that is the default domain to
append to names that do not have a dot in them. If no domain
entries are present, the domain returned by gethostname(2)
is used (everything after the first ``.''); if no domain is
returned, the root domain is assumed.
The name value pair must appear on a single line, and the keyword (e.g.
nameserver) must start the line. The value follows the keyword,
separated by white space.
FILES
/etc/resolv.conf
SEE ALSO
named(1M);
Configuring and Managing TCP/IP;
Name Server Operations Guide for BIND.