<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=resolv.conf_manpage</id>
	<title>resolv.conf manpage - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=resolv.conf_manpage"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=resolv.conf_manpage&amp;action=history"/>
	<updated>2026-06-25T18:03:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=resolv.conf_manpage&amp;diff=8403&amp;oldid=prev</id>
		<title>Woozle: New page: ==Navigation== category:manpagescomputing: software: operating systems: Linux: configuration files: resolv.conf: [[resolv.conf manpa...</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=resolv.conf_manpage&amp;diff=8403&amp;oldid=prev"/>
		<updated>2007-10-21T15:32:23Z</updated>

		<summary type="html">&lt;p&gt;New page: ==Navigation== &lt;a href=&quot;/Category:manpages&quot; title=&quot;Category:manpages&quot;&gt;category:manpages&lt;/a&gt;&lt;a href=&quot;/computing&quot; title=&quot;computing&quot;&gt;computing&lt;/a&gt;: &lt;a href=&quot;/software&quot; title=&quot;software&quot;&gt;software&lt;/a&gt;: &lt;a href=&quot;/operating_systems&quot; class=&quot;mw-redirect&quot; title=&quot;operating systems&quot;&gt;operating systems&lt;/a&gt;: &lt;a href=&quot;/Linux&quot; title=&quot;Linux&quot;&gt;Linux&lt;/a&gt;: &lt;a href=&quot;/mw/index.php?title=configuration_files_(Linux)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;configuration files (Linux) (page does not exist)&quot;&gt;configuration files&lt;/a&gt;: &lt;a href=&quot;/resolv.conf&quot; title=&quot;resolv.conf&quot;&gt;resolv.conf&lt;/a&gt;: [[resolv.conf manpa...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Navigation==&lt;br /&gt;
[[category:manpages]][[computing]]: [[software]]: [[operating systems]]: [[Linux]]: [[configuration files (Linux)|configuration files]]: [[resolv.conf]]: [[resolv.conf manpage|manpage]]&lt;br /&gt;
==Text==&lt;br /&gt;
===NAME===&lt;br /&gt;
       [[resolv.conf]] - [[domain name resolver|resolver]] configuration file&lt;br /&gt;
===SYNOPSIS===&lt;br /&gt;
       /etc/resolv.conf&lt;br /&gt;
===DESCRIPTION===&lt;br /&gt;
       The  resolver  is  a  set  of routines in the C library that provide access to the Internet&lt;br /&gt;
       Domain Name System (DNS).  The resolver configuration file  contains  information  that  is&lt;br /&gt;
       read  by  the  resolver routines the first time they are invoked by a process.  The file is&lt;br /&gt;
       designed to be human readable and contains a list of keywords with values that provide var‐&lt;br /&gt;
       ious types of resolver information.&lt;br /&gt;
&lt;br /&gt;
       On a normally configured system this file should not be necessary.  The only name server to&lt;br /&gt;
       be queried will be on the local machine; the domain name is determined from the  host  name&lt;br /&gt;
       and the domain search path is constructed from the domain name.&lt;br /&gt;
&lt;br /&gt;
       The different configuration options are:&lt;br /&gt;
&lt;br /&gt;
       nameserver Name server IP address&lt;br /&gt;
              Internet  address (in dot notation) of a name server that the resolver should query.&lt;br /&gt;
              Up to MAXNS (currently 3, see &amp;lt;resolv.h&amp;gt;) name servers may be listed, one  per  key‐&lt;br /&gt;
              word.  If there are multiple servers, the resolver library queries them in the order&lt;br /&gt;
              listed.  If no nameserver entries are present, the default is to use the name server&lt;br /&gt;
              on the local machine.  (The algorithm used is to try a name server, and if the query&lt;br /&gt;
              times out, try the next, until out of name servers, then repeat trying all the  name&lt;br /&gt;
              servers until a maximum number of retries are made.)&lt;br /&gt;
&lt;br /&gt;
       domain Local domain name.&lt;br /&gt;
              Most  queries for names within this domain can use short names relative to the local&lt;br /&gt;
              domain.  If no domain entry is present, the domain is determined from the local host&lt;br /&gt;
              name  returned by gethostname(); the domain part is taken to be everything after the&lt;br /&gt;
              first ‘.’.  Finally, if the host name does not  contain  a  domain  part,  the  root&lt;br /&gt;
              domain is assumed.&lt;br /&gt;
&lt;br /&gt;
       search Search list for host-name lookup.&lt;br /&gt;
              The  search  list  is normally determined from the local domain name; by default, it&lt;br /&gt;
              contains only the local domain name.  This may be changed  by  listing  the  desired&lt;br /&gt;
              domain  search  path following the search keyword with spaces or tabs separating the&lt;br /&gt;
              names.  Resolver queries having fewer than ndots dots (default is 1) in them will be&lt;br /&gt;
              attempted  using  each  component of the search path in turn until a match is found.&lt;br /&gt;
              For environments with multiple subdomains please read options ndots:n below to avoid&lt;br /&gt;
              man-in-the-middle  attacks  and  unnecessary traffic for the root-dns-servers.  Note&lt;br /&gt;
              that this process may be slow and will generate a lot  of  network  traffic  if  the&lt;br /&gt;
              servers  for  the listed domains are not local, and that queries will time out if no&lt;br /&gt;
              server is available for one of the domains.&lt;br /&gt;
&lt;br /&gt;
              The search list is currently limited to six domains with a total of 256  characters.&lt;br /&gt;
&lt;br /&gt;
       sortlist&lt;br /&gt;
              Sortlist  allows  addresses  returned  by gethostbyname to be sorted.  A sortlist is&lt;br /&gt;
              specified by IP address netmask pairs. The netmask is optional and defaults  to  the&lt;br /&gt;
              natural  netmask of the net. The IP address and optional network pairs are separated&lt;br /&gt;
              by slashes. Up to 10 pairs may be specified. E.g.,&lt;br /&gt;
                sortlist 130.155.160.0/255.255.240.0 130.155.0.0&lt;br /&gt;
&lt;br /&gt;
       options&lt;br /&gt;
              Options allows certain internal resolver variables to be modified.  The syntax is&lt;br /&gt;
&lt;br /&gt;
                     options option ...&lt;br /&gt;
&lt;br /&gt;
              where option is one of the following:&lt;br /&gt;
&lt;br /&gt;
              debug  sets RES_DEBUG in _res.options.&lt;br /&gt;
&lt;br /&gt;
              ndots:n&lt;br /&gt;
                     sets a threshold for the number of dots which must appear in a name given  to&lt;br /&gt;
                     res_query()  (see resolver(3)) before an initial absolute query will be made.&lt;br /&gt;
                     The default for n is ‘‘1’’, meaning that if there are any dots in a name, the&lt;br /&gt;
                     name  will be tried first as an absolute name before any search list elements&lt;br /&gt;
                     are appended to it.&lt;br /&gt;
&lt;br /&gt;
              timeout:n&lt;br /&gt;
                     sets the amount of time the resolver will wait for a response from  a  remote&lt;br /&gt;
                     name  server before retrying the query via a different name server.  Measured&lt;br /&gt;
                     in seconds, the default is RES_TIMEOUT (currently 5, see &amp;lt;resolv.h&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
              attempts:n&lt;br /&gt;
                     sets the number of times the resolver will send a query to its  name  servers&lt;br /&gt;
                     before  giving  up  and  returning  an error to the calling application.  The&lt;br /&gt;
                     default is RES_DFLRETRY (currently 2, see &amp;lt;resolv.h&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
              rotate sets RES_ROTATE in _res.options, which causes round robin selection of  name‐&lt;br /&gt;
                     servers  from among those listed.  This has the effect of spreading the query&lt;br /&gt;
                     load among all listed servers, rather than having all clients try  the  first&lt;br /&gt;
                     listed server first every time.&lt;br /&gt;
&lt;br /&gt;
              no-check-names&lt;br /&gt;
                     sets RES_NOCHECKNAME in _res.options, which disables the modern BIND checking&lt;br /&gt;
                     of incoming host names and mail names for invalid characters such  as  under‐&lt;br /&gt;
                     score (_), non-ASCII, or control characters.&lt;br /&gt;
&lt;br /&gt;
              inet6  sets  RES_USE_INET6  in  _res.options.   This has the effect of trying a AAAA&lt;br /&gt;
                     query before an A query inside the gethostbyname() function, and  of  mapping&lt;br /&gt;
                     IPv4 responses in IPv6 ‘‘tunnelled form’’ if no AAAA records are found but an&lt;br /&gt;
                     A record set exists.&lt;br /&gt;
&lt;br /&gt;
       The domain and search keywords are mutually exclusive.  If more than one instance of  these&lt;br /&gt;
       keywords is present, the last instance wins.&lt;br /&gt;
&lt;br /&gt;
       The  search keyword of a system’s resolv.conf file can be overridden on a per-process basis&lt;br /&gt;
       by setting the environment variable ‘‘LOCALDOMAIN’’ to a  space-separated  list  of  search&lt;br /&gt;
       domains.&lt;br /&gt;
&lt;br /&gt;
       The options keyword of a system’s resolv.conf file can be amended on a per-process basis by&lt;br /&gt;
       setting the environment variable ‘‘RES_OPTIONS’’ to  a  space-separated  list  of  resolver&lt;br /&gt;
       options as explained above under options.&lt;br /&gt;
&lt;br /&gt;
       The  keyword and value must appear on a single line, and the keyword (e.g. nameserver) must&lt;br /&gt;
       start the line.  The value follows the keyword, separated by white space.&lt;br /&gt;
===FILES===&lt;br /&gt;
       /etc/resolv.conf, &amp;lt;resolv.h&amp;gt;&lt;br /&gt;
===SEE ALSO===&lt;br /&gt;
       [[gethostbyname]](3), [[resolver manpage|resolver]](3), [[hostname manpage|hostname]](7), [[named manpage|named]](8)&lt;br /&gt;
       [[Name Server Operations Guide for BIND]]&lt;/div&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
</feed>