source: trunk/minix/man/man5/resolver.5@ 22

Last change on this file since 22 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 3.9 KB
Line 
1.\" Copyright (c) 1986 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that the above copyright notice and this paragraph are
6.\" duplicated in all such forms and that any documentation,
7.\" advertising materials, and other materials related to such
8.\" distribution and use acknowledge that the software was developed
9.\" by the University of California, Berkeley. The name of the
10.\" University may not be used to endorse or promote products derived
11.\" from this software without specific prior written permission.
12.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15.\"
16.\" @(#)resolver.5 5.9 (Berkeley) 12/14/89
17.\"
18.TH RESOLVER 5 "December 14, 1989"
19.UC 4
20.SH NAME
21resolver \- resolver configuration file
22.SH SYNOPSIS
23/etc/resolv.conf
24.SH DESCRIPTION
25.LP
26The
27.I resolver
28is a set of routines in the C library (\c
29.IR resolv (3))
30that provide access to the Internet Domain Name System.
31The resolver configuration file contains information that is read
32by the resolver routines the first time they are invoked by a process.
33The file is designed to be human readable and contains a list of
34keywords with values that provide various types of resolver information.
35.LP
36On a normally configured system this file should not be necessary.
37The only name server to be queried will be on the local machine,
38the domain name is determined from the host name,
39and the domain search path is constructed from the domain name.
40.LP
41The different configuration options are:
42.TP
43\fBnameserver\fP
44Internet address (in dot notation) of a name server
45that the resolver should query.
46Up to MAXNS (currently 3) name servers may be listed,
47one per keyword.
48If there are multiple servers,
49the resolver library queries them in the order listed.
50If no \fBnameserver\fP entries are present,
51the default is to use the name server on the local machine.
52(The algorithm used is to try a name server, and if the query times out,
53try the next, until out of name servers,
54then repeat trying all the name servers
55until a maximum number of retries are made).
56.TP
57\fBdomain\fP
58Local domain name.
59Most queries for names within this domain can use short names
60relative to the local domain.
61If no \fBdomain\fP entry is present, the domain is determined
62from the local host name returned by
63\fIgethostname\fP\|(2);
64the domain part is taken to be everything after the first `.'.
65Finally, if the host name does not contain a domain part, the root
66domain is assumed.
67.TP
68\fBsearch\fP
69Search list for host-name lookup.
70The search list is normally determined from the local domain name;
71by default, it begins with the local domain name, then successive
72parent domains that have at least two components in their names.
73This may be changed by listing the desired domain search path
74following the \fIsearch\fP keyword with spaces or tabs separating
75the names.
76Most resolver queries will be attempted using each component
77of the search path in turn until a match is found.
78Note that this process may be slow and will generate a lot of network
79traffic if the servers for the listed domains are not local,
80and that queries will time out if no server is available
81for one of the domains.
82.IP
83The search list is currently limited to six domains
84with a total of 256 characters.
85.LP
86The \fIdomain\fP and \fIsearch\fP keywords are mutually exclusive.
87If more than one instance of these keywords is present,
88the last instance will override.
89.LP
90The keyword and value must appear on a single line, and the keyword
91(e.g. \fBnameserver\fP) must start the line. The value follows
92the keyword, separated by white space.
93.SH FILES
94.I /etc/resolv.conf
95.SH SEE ALSO
96gethostbyname(3N), resolver(3), hostname(7), named(8)
97.br
98Name Server Operations Guide for BIND
Note: See TracBrowser for help on using the repository browser.