add Berkeley specific copyright
[unix-history] / usr / src / share / man / man5 / resolver.5
index 2fae821..d9eda34 100644 (file)
@@ -1,42 +1,65 @@
-.\"    @(#)resolver.5  5.1 (Berkeley) %G%
+.\" Copyright (c) 1986 The Regents of the University of California.
+.\" All rights reserved.
 .\"
 .\"
-.TH RESOLVER 5 "1 January 1986"
+.\" Redistribution and use in source and binary forms are permitted
+.\" provided that the above copyright notice and this paragraph are
+.\" duplicated in all such forms and that any documentation,
+.\" advertising materials, and other materials related to such
+.\" distribution and use acknowledge that the software was developed
+.\" by the University of California, Berkeley.  The name of the
+.\" University may not be used to endorse or promote products derived
+.\" from this software without specific prior written permission.
+.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+.\"
+.\"    @(#)resolver.5  5.7 (Berkeley) %G%
+.\"
+.TH RESOLVER 5 ""
 .UC 4
 .SH NAME
 .UC 4
 .SH NAME
-resolver configuration file
+resolver \- resolver configuration file
+.SH SYNOPSIS
+/etc/resolv.conf
 .SH DESCRIPTION
 .LP
 The resolver configuration file contains information that is read
 .SH DESCRIPTION
 .LP
 The resolver configuration file contains information that is read
-by the resolver routines the first time they are invoked in a process.
+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
 The file is designed to be human readable and contains a list of
-name-value pairs which provide various types of resolver information.
+name-value pairs that provide various types of resolver information.
+.LP
+On a normally configured system this file should not be necessary.
+The only name server to be queried will be on the local machine and 
+the domain name is retrieved from the system.
 .LP
 The different configuration options are:
 .TP
 \fBnameserver\fP
 .LP
 The different configuration options are:
 .TP
 \fBnameserver\fP
-followed by the Internet address (in dot notation) of a nameserver
-that the resolver should query.  At least one nameserver should be
-listed.  Up to MAXNS (currently 3) nameservers may be listed, in which
+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.
 case the resolver library queries tries them in the order listed.
-(The algorithm used is to try a nameserver, and if the query times out,
-try the next, until out of nameservers, then repeat trying all the nameservers
-until a maximum number of retries has been made).
+If no \fBnameserver\fP entries are present,
+the default is to use the name server on the local machine.
+(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).
 .TP
 \fBdomain\fP
 .TP
 \fBdomain\fP
-followed by a domain name, which is
-the default domain to append to names which do not have a dot in them.
-This defaults to empty (the root 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 \fBdomain\fP entries are present, the domain returned by
+\fIgethostname\fP\|(2) is used (everything after the first `.').
+Finally, if the host name does not contain a domain part, the root
+domain is assumed.
 .LP
 The name value pair must appear on a single line, and the keyword
 (e.g. \fBnameserver\fP) must start the line.  The value follows
 .LP
 The name value pair must appear on a single line, and the keyword
 (e.g. \fBnameserver\fP) must start the line.  The value follows
-the keyword, separated by whitespace.
+the keyword, separated by white space.
 .SH FILES
 .I /etc/resolv.conf
 .SH SEE ALSO
 .SH FILES
 .I /etc/resolv.conf
 .SH SEE ALSO
-gethostent(3n), resolver(3), named(8)
-.SH BUGS
-.LP
-There is currently no way to indicate that one address for a host
-is preferred over another.  (Solutions are being considered).
-
-
+gethostbyname(3N), resolver(3), named(8)
+.br
+Name Server Operations Guide for BIND