CINXE.COM
resolv.conf(5) — manpages — Debian bookworm — Debian Manpages
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>resolv.conf(5) — manpages — Debian bookworm — Debian Manpages</title> <style type="text/css"> @font-face { font-family: 'Inconsolata'; src: local('Inconsolata'), url(/Inconsolata.woff2) format('woff2'), url(/Inconsolata.woff) format('woff'); font-display: swap; } @font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; src: local('Roboto'), local('Roboto Regular'), local('Roboto-Regular'), url(/Roboto-Regular.woff2) format('woff2'), url(/Roboto-Regular.woff) format('woff'); font-display: swap; } body { color: #000; background-color: white; background-image: linear-gradient(to bottom, #d7d9e2, #fff 70px); background-position: 0 0; background-repeat: repeat-x; font-family: sans-serif; font-size: 100%; line-height: 1.2; letter-spacing: 0.15px; margin: 0; padding: 0; } #header { padding: 0 10px 0 52px; } #logo { position: absolute; top: 0; left: 0; border-left: 1px solid transparent; border-right: 1px solid transparent; border-bottom: 1px solid transparent; width: 50px; height: 5.07em; min-height: 65px; } #logo a { display: block; height: 100%; } #logo img { margin-top: 5px; position: absolute; bottom: 0.3em; overflow: auto; border: 0; } p.section { margin: 0; padding: 0 5px 0 5px; font-size: 13px; line-height: 16px; color: white; letter-spacing: 0.08em; position: absolute; top: 0px; left: 52px; background-color: #c70036; } p.section a { color: white; text-decoration: none; } .hidecss { display: none; } #searchbox { text-align:left; line-height: 1; margin: 0 10px 0 0.5em; padding: 1px 0 1px 0; position: absolute; top: 0; right: 0; font-size: .75em; } #navbar { border-bottom: 1px solid #c70036; } #navbar ul { margin: 0; padding: 0; overflow: hidden; } #navbar li { list-style: none; float: left; } #navbar a { display: block; padding: 1.75em .5em .25em .5em; color: #0035c7; text-decoration: none; border-left: 1px solid transparent; border-right: 1px solid transparent; } #navbar a:hover , #navbar a:visited:hover { background-color: #f5f6f7; border-left: 1px solid #d2d3d7; border-right: 1px solid #d2d3d7; text-decoration: underline; } a:link { color: #0035c7; } a:visited { color: #54638c; } #breadcrumbs { line-height: 2; min-height: 20px; margin: 0; padding: 0; font-size: 0.75em; background-color: #f5f6f7; border-bottom: 1px solid #d2d3d7; } #breadcrumbs:before { margin-left: 0.5em; margin-right: 0.5em; } #content { margin: 0 10px 0 52px; display: flex; flex-direction: row; word-wrap: break-word; } .paneljump { background-color: #d70751; padding: 0.5em; border-radius: 3px; margin-right: .5em; display: none; } .paneljump a, .paneljump a:visited, .paneljump a:hover, .paneljump a:focus { color: white; } @media all and (max-width: 800px) { #content { flex-direction: column; margin: 0.5em; } .paneljump { display: block; } } .panels { display: block; order: 2; } .maincontent { width: 100%; max-width: 80ch; order: 1; } .mandoc { font-family: monospace; font-size: 1.04rem; } .mandoc pre { white-space: pre-wrap; } #footer { border: 1px solid #dfdfe0; border-left: 0; border-right: 0; background-color: #f5f6f7; padding: 1em; margin: 1em 10px 0 52px; font-size: 0.75em; line-height: 1.5em; } hr { border-top: 1px solid #d2d3d7; border-bottom: 1px solid white; border-left: 0; border-right: 0; margin: 1.4375em 0 1.5em 0; height: 0; background-color: #bbb; } #content p { padding-left: 1em; } a, a:hover, a:focus, a:visited { color: #0530D7; text-decoration: none; } .panel { padding: 15px; margin-bottom: 20px; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 4px; -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); } .panel-heading, .panel details { margin: -15px -15px 0px; background-color: #d70751; border-bottom: 1px solid #dddddd; border-top-right-radius: 3px; border-top-left-radius: 3px; } .panel-heading, .panel summary { padding: 5px 5px; font-size: 17.5px; font-weight: 500; color: #ffffff; outline-style: none; } .panel summary { padding-left: 7px; } summary, details { display: block; } .panel details ul { margin: 0; } .panel-footer { padding: 5px 5px; margin: 15px -15px -15px; background-color: #f5f5f5; border-top: 1px solid #dddddd; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .panel-info { border-color: #bce8f1; } .panel-info .panel-heading { color: #3a87ad; background-color: #d9edf7; border-color: #bce8f1; } .list-group { padding-left: 0; margin-bottom: 20px; background-color: #ffffff; } .list-group-item { position: relative; display: block; padding: 5px 5px 5px 5px; margin-bottom: -1px; border: 1px solid #dddddd; } .list-group-item > .list-item-key { min-width: 27%; display: inline-block; } .list-group-item > .list-item-key.versions-repository { min-width: 40%; } .list-group-item > .list-item-key.versioned-links-version { min-width: 40% } .versioned-links-icon { margin-right: 2px; } .versioned-links-icon a { color: black; } .versioned-links-icon a:hover { color: blue; } .versioned-links-icon-inactive { opacity: 0.5; } .list-group-item:first-child { border-top-right-radius: 4px; border-top-left-radius: 4px; } .list-group-item:last-child { margin-bottom: 0; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } .list-group-item-heading { margin-top: 0; margin-bottom: 5px; } .list-group-item-text { margin-bottom: 0; line-height: 1.3; } .list-group-item:hover { background-color: #f5f5f5; } .list-group-item.active a { z-index: 2; } .list-group-item.active { background-color: #efefef; } .list-group-flush { margin: 15px -15px -15px; } .panel .list-group-flush { margin-top: -1px; } .list-group-flush .list-group-item { border-width: 1px 0; } .list-group-flush .list-group-item:first-child { border-top-right-radius: 0; border-top-left-radius: 0; } .list-group-flush .list-group-item:last-child { border-bottom: 0; } .panel { float: right; clear: right; min-width: 200px; } .toc { width: 200px; } .toc li { font-size: 98%; letter-spacing: 0.02em; display: flex; } .otherversions { width: 200px; } .otherversions li, .otherlangs li { display: flex; } .otherversions a, .otherlangs a { flex-shrink: 0; } .pkgversion, .pkgname, .toc a { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .pkgversion, .pkgname { margin-left: auto; padding-left: 1em; } .mandoc { overflow: hidden; margin-top: .5em; margin-right: 45px; } table.head, table.foot { width: 100%; } .head-vol { text-align: center; } .head-rtitle { text-align: right; } .spacer, .Pp { min-height: 1em; } pre { margin-left: 2em; } .anchor { margin-left: .25em; visibility: hidden; } h1:hover .anchor, h2:hover .anchor, h3:hover .anchor, h4:hover .anchor, h5:hover .anchor, h6:hover .anchor { visibility: visible; } h1, h2, h3, h4, h5, h6 { letter-spacing: .07em; margin-top: 1.5em; margin-bottom: .35em; } h1 { font-size: 150%; } h2 { font-size: 125%; } @media print { #header, #footer, .panel, .anchor, .paneljump { display: none; } #content { margin: 0; } .mandoc { margin: 0; } } .Bd { } .Bd-indent { margin-left: 3.8em; } .Bl-bullet { list-style-type: disc; padding-left: 1em; } .Bl-bullet > li { } .Bl-dash { list-style-type: none; padding-left: 0em; } .Bl-dash > li:before { content: "\2014 "; } .Bl-item { list-style-type: none; padding-left: 0em; } .Bl-item > li { } .Bl-compact > li { margin-top: 0em; } .Bl-enum { padding-left: 2em; } .Bl-enum > li { } .Bl-compact > li { margin-top: 0em; } .Bl-diag { } .Bl-diag > dt { font-style: normal; font-weight: bold; } .Bl-diag > dd { margin-left: 0em; } .Bl-hang { } .Bl-hang > dt { } .Bl-hang > dd { margin-left: 5.5em; } .Bl-inset { } .Bl-inset > dt { } .Bl-inset > dd { margin-left: 0em; } .Bl-ohang { } .Bl-ohang > dt { } .Bl-ohang > dd { margin-left: 0em; } .Bl-tag { margin-left: 5.5em; } .Bl-tag > dt { float: left; margin-top: 0em; margin-left: -5.5em; padding-right: 1.2em; vertical-align: top; } .Bl-tag > dd { clear: both; width: 100%; margin-top: 0em; margin-left: 0em; vertical-align: top; overflow: auto; } .Bl-compact > dt { margin-top: 0em; } .Bl-column { } .Bl-column > tbody > tr { } .Bl-column > tbody > tr > td { margin-top: 1em; } .Bl-compact > tbody > tr > td { margin-top: 0em; } .Rs { font-style: normal; font-weight: normal; } .RsA { } .RsB { font-style: italic; font-weight: normal; } .RsC { } .RsD { } .RsI { font-style: italic; font-weight: normal; } .RsJ { font-style: italic; font-weight: normal; } .RsN { } .RsO { } .RsP { } .RsQ { } .RsR { } .RsT { text-decoration: underline; } .RsU { } .RsV { } .eqn { } .tbl { } .HP { margin-left: 3.8em; text-indent: -3.8em; } table.Nm { } code.Nm { font-style: normal; font-weight: bold; font-family: inherit; } .Fl { font-style: normal; font-weight: bold; font-family: inherit; } .Cm { font-style: normal; font-weight: bold; font-family: inherit; } .Ar { font-style: italic; font-weight: normal; } .Op { display: inline; } .Ic { font-style: normal; font-weight: bold; font-family: inherit; } .Ev { font-style: normal; font-weight: normal; font-family: monospace; } .Pa { font-style: italic; font-weight: normal; } .Lb { } code.In { font-style: normal; font-weight: bold; font-family: inherit; } a.In { } .Fd { font-style: normal; font-weight: bold; font-family: inherit; } .Ft { font-style: italic; font-weight: normal; } .Fn { font-style: normal; font-weight: bold; font-family: inherit; } .Fa { font-style: italic; font-weight: normal; } .Vt { font-style: italic; font-weight: normal; } .Va { font-style: italic; font-weight: normal; } .Dv { font-style: normal; font-weight: normal; font-family: monospace; } .Er { font-style: normal; font-weight: normal; font-family: monospace; } .An { } .Lk { } .Mt { } .Cd { font-style: normal; font-weight: bold; font-family: inherit; } .Ad { font-style: italic; font-weight: normal; } .Ms { font-style: normal; font-weight: bold; } .St { } .Ux { } .Bf { display: inline; } .No { font-style: normal; font-weight: normal; } .Em { font-style: italic; font-weight: normal; } .Sy { font-style: normal; font-weight: bold; } .Li { font-style: normal; font-weight: normal; font-family: monospace; } body { font-family: 'Roboto', sans-serif; } .mandoc, .mandoc pre, .mandoc code, p.section { font-family: 'Inconsolata', monospace; } </style> <link rel="search" title="Debian manpages" type="application/opensearchdescription+xml" href="/opensearch.xml"> <link rel="alternate" href="/bookworm/manpages-de/resolv.conf.5.de.html" hreflang="de"> <link rel="alternate" href="/bookworm/manpages/resolv.conf.5.en.html" hreflang="en"> <link rel="alternate" href="/bookworm/manpages-ja/resolv.conf.5.ja.html" hreflang="ja"> <link rel="alternate" href="/bookworm/manpages-pl/resolv.conf.5.pl.html" hreflang="pl"> <link rel="alternate" href="/bookworm/manpages-ru/resolv.conf.5.ru.html" hreflang="ru"> </head> <body> <div id="header"> <div id="upperheader"> <div id="logo"> <a href="https://www.debian.org/" title="Debian Home"><img src="/openlogo-50.svg" alt="Debian" width="50" height="61"></a> </div> <p class="section"><a href="/">MANPAGES</a></p> <div id="searchbox"> <form action="https://dyn.manpages.debian.org/jump" method="get"> <input type="hidden" name="suite" value="bookworm"> <input type="hidden" name="binarypkg" value="manpages"> <input type="hidden" name="section" value="5"> <input type="hidden" name="language" value="en"> <input type="text" name="q" placeholder="manpage name" required> <input type="submit" value="Jump"> </form> </div> </div> <div id="navbar"> <p class="hidecss"><a href="#content">Skip Quicknav</a></p> <ul> <li><a href="/">Index</a></li> <li><a href="/about.html">About Manpages</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="https://wiki.debian.org/manpages.debian.org">Service Information</a></li> </ul> </div> <p id="breadcrumbs"> / <a href="/contents-bookworm.html">bookworm</a> / <a href="/bookworm/manpages/index.html">manpages</a> / resolv.conf(5) </p> </div> <div id="content"> <div class="panels" id="panels"> <div class="panel" role="complementary"> <div class="panel-heading" role="heading"> links </div> <div class="panel-body"> <ul class="list-group list-group-flush"> <li class="list-group-item"> <a href="/bookworm/manpages/resolv.conf.5">language-indep link</a> </li> <li class="list-group-item"> <a href="https://tracker.debian.org/pkg/manpages">package tracker</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages/resolv.conf.5.en.gz">raw man page</a> </li> </ul> </div> </div> <div class="panel toc" role="complementary" style="padding-bottom: 0"> <details> <summary> table of contents </summary> <div class="panel-body"> <ul class="list-group list-group-flush"> <li class="list-group-item"> <a class="toclink" href="#NAME" title="NAME">NAME</a> </li> <li class="list-group-item"> <a class="toclink" href="#SYNOPSIS" title="SYNOPSIS">SYNOPSIS</a> </li> <li class="list-group-item"> <a class="toclink" href="#DESCRIPTION" title="DESCRIPTION">DESCRIPTION</a> </li> <li class="list-group-item"> <a class="toclink" href="#FILES" title="FILES">FILES</a> </li> <li class="list-group-item"> <a class="toclink" href="#SEE_ALSO" title="SEE ALSO">SEE ALSO</a> </li> </ul> </div> </details> </div> <div class="panel otherversions" role="complementary"> <div class="panel-heading" role="heading"> other versions </div> <div class="panel-body"> <ul class="list-group list-group-flush"> <li class="list-group-item active"> <a href="/bookworm/manpages/resolv.conf.5.en.html">bookworm</a> <span class="pkgversion" title="6.03-2">6.03-2</span> </li> <li class="list-group-item"> <a href="/testing/manpages/resolv.conf.5.en.html">testing</a> <span class="pkgversion" title="6.8-2">6.8-2</span> </li> <li class="list-group-item"> <a href="/unstable/manpages/resolv.conf.5.en.html">unstable</a> <span class="pkgversion" title="6.9.1-1">6.9.1-1</span> </li> </ul> </div> </div> <div class="panel otherlangs" role="complementary"> <div class="panel-heading" role="heading"> other languages </div> <div class="panel-body"> <ul class="list-group list-group-flush"> <li class="list-group-item"> <a href="/bookworm/manpages-de/resolv.conf.5.de.html" title="German (de)">Deutsch</a> </li> <li class="list-group-item active"> <a href="/bookworm/manpages/resolv.conf.5.en.html" title="English (en)">English</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages-ja/resolv.conf.5.ja.html" title="Japanese (ja)">日本語</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages-pl/resolv.conf.5.pl.html" title="Polish (pl)">polski</a> </li> <li class="list-group-item"> <a href="/bookworm/manpages-ru/resolv.conf.5.ru.html" title="Russian (ru)">русский</a> </li> </ul> </div> </div> </div> <div class="maincontent"> <p class="paneljump"><a href="#panels">Scroll to navigation</a></p> <div class="mandoc"> <table class="head"> <tbody><tr> <td class="head-ltitle"><a href="/bookworm/manpages/resolv.conf.5.en.html">resolv.conf(5)</a></td> <td class="head-vol">File Formats Manual</td> <td class="head-rtitle"><a href="/bookworm/manpages/resolv.conf.5.en.html">resolv.conf(5)</a></td> </tr> </tbody></table> <div class="manual-text"> <section class="Sh"> <h1 class="Sh" id="NAME">NAME<a class="anchor" href="#NAME">¶</a></h1> <p class="Pp">resolv.conf - resolver configuration file</p> </section> <section class="Sh"> <h1 class="Sh" id="SYNOPSIS">SYNOPSIS<a class="anchor" href="#SYNOPSIS">¶</a></h1> <pre><b>/etc/resolv.conf</b></pre> </section> <section class="Sh"> <h1 class="Sh" id="DESCRIPTION">DESCRIPTION<a class="anchor" href="#DESCRIPTION">¶</a></h1> <p class="Pp">The <i>resolver</i> is a set of routines in the C library that provide access to the Internet Domain Name System (DNS). 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 keywords with values that provide various types of resolver information. The configuration file is considered a trusted source of DNS information; see the <b>trust-ad</b> option below for details.</p> <p class="Pp">If this file does not exist, only the name server on the local machine will be queried, and the search list contains the local domain name determined from the hostname.</p> <p class="Pp">The different configuration options are:</p> <dl class="Bl-tag"> <dt id="nameserver"><a class="permalink" href="#nameserver"><b>nameserver</b> Name server IP address</a></dt> <dd>Internet address of a name server that the resolver should query, either an IPv4 address (in dot notation), or an IPv6 address in colon (and possibly dot) notation as per RFC 2373. Up to <b>MAXNS</b> (currently 3, see <i><resolv.h></i>) name servers may be listed, one per keyword. If there are multiple servers, the resolver library queries them in the order listed. If no <b>nameserver</b> 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.)</dd> <dt id="search"><a class="permalink" href="#search"><b>search</b> Search list for host-name lookup.</a></dt> <dd>By default, the search list contains one entry, the local domain name. It is determined from the local hostname returned by <a href="/bookworm/manpages-dev/gethostname.2.en.html">gethostname(2)</a>; the local domain name is taken to be everything after the first '.'. Finally, if the hostname does not contain a '.', the root domain is assumed as the local domain name.</dd> </dl> <dl class="Bl-tag"> <dt></dt> <dd>This may be changed by listing the desired domain search path following the <i>search</i> keyword with spaces or tabs separating the names. Resolver queries having fewer than <i>ndots</i> dots (default is 1) in them will be attempted using each component of the search path in turn until a match is found. For environments with multiple subdomains please read <b>options ndots:</b><i>n</i> below to avoid man-in-the-middle attacks and unnecessary traffic for the root-dns-servers. Note that this process may be slow and will generate a lot of network traffic if the servers for the listed domains are not local, and that queries will time out if no server is available for one of the domains.</dd> <dt></dt> <dd>If there are multiple <b>search</b> directives, only the search list from the last instance is used.</dd> <dt></dt> <dd>In glibc 2.25 and earlier, the search list is limited to six domains with a total of 256 characters. Since glibc 2.26, the search list is unlimited.</dd> <dt></dt> <dd>The <b>domain</b> directive is an obsolete name for the <b>search</b> directive that handles one search list entry only.</dd> </dl> <dl class="Bl-tag"> <dt id="sortlist"><a class="permalink" href="#sortlist"><b>sortlist</b></a></dt> <dd>This option allows addresses returned by <a href="/bookworm/manpages-dev/gethostbyname.3.en.html">gethostbyname(3)</a> to be sorted. A sortlist is specified by IP-address-netmask pairs. The netmask is optional and defaults to the natural netmask of the net. The IP address and optional network pairs are separated by slashes. Up to 10 pairs may be specified. Here is an example:</dd> </dl> <dl class="Bl-tag"> <dt></dt> <dd> <br/> sortlist 130.155.160.0/255.255.240.0 130.155.0.0 <br/> </dd> </dl> <dl class="Bl-tag"> <dt id="options"><a class="permalink" href="#options"><b>options</b></a></dt> <dd>Options allows certain internal resolver variables to be modified. The syntax is</dd> </dl> <div class="Bd-indent"> <dl class="Bl-tag"> <dt></dt> <dd><b>options</b> <i>option</i> <i>...</i></dd> </dl> <p class="Pp">where <i>option</i> is one of the following:</p> <dl class="Bl-tag"> <dt id="debug"><a class="permalink" href="#debug"><b>debug</b></a></dt> <dd>Sets <b>RES_DEBUG</b> in <i>_res.options</i> (effective only if glibc was built with debug support; see <a href="/bookworm/manpages-dev/resolver.3.en.html">resolver(3)</a>).</dd> <dt id="ndots:"><a class="permalink" href="#ndots:"><b>ndots:</b><i>n</i></a></dt> <dd>Sets a threshold for the number of dots which must appear in a name given to <a href="/bookworm/manpages-dev/res_query.3.en.html">res_query(3)</a> (see <a href="/bookworm/manpages-dev/resolver.3.en.html">resolver(3)</a>) before an <i>initial absolute query</i> will be made. The default for <i>n</i> is 1, meaning that if there are any dots in a name, the name will be tried first as an absolute name before any <i>search list</i> elements are appended to it. The value for this option is silently capped to 15.</dd> <dt id="timeout:"><a class="permalink" href="#timeout:"><b>timeout:</b><i>n</i></a></dt> <dd>Sets the amount of time the resolver will wait for a response from a remote name server before retrying the query via a different name server. This may <b>not</b> be the total time taken by any resolver API call and there is no guarantee that a single resolver API call maps to a single timeout. Measured in seconds, the default is <b>RES_TIMEOUT</b> (currently 5, see <i><resolv.h></i>). The value for this option is silently capped to 30.</dd> <dt id="attempts:"><a class="permalink" href="#attempts:"><b>attempts:</b><i>n</i></a></dt> <dd>Sets the number of times the resolver will send a query to its name servers before giving up and returning an error to the calling application. The default is <b>RES_DFLRETRY</b> (currently 2, see <i><resolv.h></i>). The value for this option is silently capped to 5.</dd> <dt id="rotate"><a class="permalink" href="#rotate"><b>rotate</b></a></dt> <dd>Sets <b>RES_ROTATE</b> in <i>_res.options</i>, which causes round-robin selection of name servers from among those listed. This has the effect of spreading the query load among all listed servers, rather than having all clients try the first listed server first every time.</dd> <dt id="no"><a class="permalink" href="#no"><b>no-check-names</b></a></dt> <dd>Sets <b>RES_NOCHECKNAME</b> in <i>_res.options</i>, which disables the modern BIND checking of incoming hostnames and mail names for invalid characters such as underscore (_), non-ASCII, or control characters.</dd> <dt id="inet6"><a class="permalink" href="#inet6"><b>inet6</b></a></dt> <dd>Sets <b>RES_USE_INET6</b> in <i>_res.options</i>. This has the effect of trying an AAAA query before an A query inside the <a href="/bookworm/manpages-dev/gethostbyname.3.en.html">gethostbyname(3)</a> function, and of mapping IPv4 responses in IPv6 "tunneled form" if no AAAA records are found but an A record set exists. Since glibc 2.25, this option is deprecated; applications should use <a href="/bookworm/manpages-dev/getaddrinfo.3.en.html">getaddrinfo(3)</a>, rather than <a href="/bookworm/manpages-dev/gethostbyname.3.en.html">gethostbyname(3)</a>. <p class="Pp">Some programs behave strangely when this option is turned on.</p> </dd> <dt id="ip6"><a class="permalink" href="#ip6"><b>ip6-bytestring</b> (since glibc 2.3.4 to glibc 2.24)</a></dt> <dd>Sets <b>RES_USEBSTRING</b> in <i>_res.options</i>. This causes reverse IPv6 lookups to be made using the bit-label format described in RFC 2673; if this option is not set (which is the default), then nibble format is used. This option was removed in glibc 2.25, since it relied on a backward-incompatible DNS extension that was never deployed on the Internet.</dd> <dt id="ip6~2"><a class="permalink" href="#ip6~2"><b>ip6-dotint</b>/<b>no-ip6-dotint</b> (glibc 2.3.4 to glibc 2.24)</a></dt> <dd>Clear/set <b>RES_NOIP6DOTINT</b> in <i>_res.options</i>. When this option is clear (<b>ip6-dotint</b>), reverse IPv6 lookups are made in the (deprecated) <i>ip6.int</i> zone; when this option is set (<b>no-ip6-dotint</b>), reverse IPv6 lookups are made in the <i>ip6.arpa</i> zone by default. These options are available up to glibc 2.24, where <b>no-ip6-dotint</b> is the default. Since <b>ip6-dotint</b> support long ago ceased to be available on the Internet, these options were removed in glibc 2.25.</dd> <dt id="edns0"><a class="permalink" href="#edns0"><b>edns0</b> (since glibc 2.6)</a></dt> <dd>Sets <b>RES_USE_EDNS0</b> in <i>_res.options</i>. This enables support for the DNS extensions described in RFC 2671.</dd> <dt id="single"><a class="permalink" href="#single"><b>single-request</b> (since glibc 2.10)</a></dt> <dd>Sets <b>RES_SNGLKUP</b> in <i>_res.options</i>. By default, glibc performs IPv4 and IPv6 lookups in parallel since glibc 2.9. Some appliance DNS servers cannot handle these queries properly and make the requests time out. This option disables the behavior and makes glibc perform the IPv6 and IPv4 requests sequentially (at the cost of some slowdown of the resolving process).</dd> <dt id="single~2"><a class="permalink" href="#single~2"><b>single-request-reopen</b> (since glibc 2.9)</a></dt> <dd>Sets <b>RES_SNGLKUPREOP</b> in <i>_res.options</i>. The resolver uses the same socket for the A and AAAA requests. Some hardware mistakenly sends back only one reply. When that happens the client system will sit and wait for the second reply. Turning this option on changes this behavior so that if two requests from the same port are not handled correctly it will close the socket and open a new one before sending the second request.</dd> <dt id="no~2"><a class="permalink" href="#no~2"><b>no-tld-query</b> (since glibc 2.14)</a></dt> <dd>Sets <b>RES_NOTLDQUERY</b> in <i>_res.options</i>. This option causes <b>res_nsearch</b>() to not attempt to resolve an unqualified name as if it were a top level domain (TLD). This option can cause problems if the site has ``localhost'' as a TLD rather than having localhost on one or more elements of the search list. This option has no effect if neither RES_DEFNAMES or RES_DNSRCH is set.</dd> <dt id="use"><a class="permalink" href="#use"><b>use-vc</b> (since glibc 2.14)</a></dt> <dd>Sets <b>RES_USEVC</b> in <i>_res.options</i>. This option forces the use of TCP for DNS resolutions.</dd> <dt id="no~3"><a class="permalink" href="#no~3"><b>no-reload</b> (since glibc 2.26)</a></dt> <dd>Sets <b>RES_NORELOAD</b> in <i>_res.options</i>. This option disables automatic reloading of a changed configuration file.</dd> <dt id="trust"><a class="permalink" href="#trust"><b>trust-ad</b> (since glibc 2.31)</a></dt> <dd>Sets <b>RES_TRUSTAD</b> in <i>_res.options</i>. This option controls the AD bit behavior of the stub resolver. If a validating resolver sets the AD bit in a response, it indicates that the data in the response was verified according to the DNSSEC protocol. In order to rely on the AD bit, the local system has to trust both the DNSSEC-validating resolver and the network path to it, which is why an explicit opt-in is required. If the <b>trust-ad</b> option is active, the stub resolver sets the AD bit in outgoing DNS queries (to enable AD bit support), and preserves the AD bit in responses. Without this option, the AD bit is not set in queries, and it is always removed from responses before they are returned to the application. This means that applications can trust the AD bit in responses if the <b>trust-ad</b> option has been set correctly.</dd> </dl> <dl class="Bl-tag"> <dt></dt> <dd>In glibc 2.30 and earlier, the AD is not set automatically in queries, and is passed through unchanged to applications in responses.</dd> </dl> </div> <p class="Pp">The <i>search</i> keyword of a system's <i>resolv.conf</i> file can be overridden on a per-process basis by setting the environment variable <b>LOCALDOMAIN</b> to a space-separated list of search domains.</p> <p class="Pp">The <i>options</i> keyword of a system's <i>resolv.conf</i> file can be amended on a per-process basis by setting the environment variable <b>RES_OPTIONS</b> to a space-separated list of resolver options as explained above under <b>options</b>.</p> <p class="Pp">The keyword and value must appear on a single line, and the keyword (e.g., <b>nameserver</b>) must start the line. The value follows the keyword, separated by white space.</p> <p class="Pp">Lines that contain a semicolon (;) or hash character (#) in the first column are treated as comments.</p> </section> <section class="Sh"> <h1 class="Sh" id="FILES">FILES<a class="anchor" href="#FILES">¶</a></h1> <p class="Pp"><i>/etc/resolv.conf</i>, <i><resolv.h></i></p> </section> <section class="Sh"> <h1 class="Sh" id="SEE_ALSO">SEE ALSO<a class="anchor" href="#SEE_ALSO">¶</a></h1> <p class="Pp"><a href="/bookworm/manpages-dev/gethostbyname.3.en.html">gethostbyname(3)</a>, <a href="/bookworm/manpages-dev/resolver.3.en.html">resolver(3)</a>, <a href="/bookworm/manpages/host.conf.5.en.html">host.conf(5)</a>, <a href="/bookworm/manpages/hosts.5.en.html">hosts(5)</a>, <a href="/bookworm/manpages/nsswitch.conf.5.en.html">nsswitch.conf(5)</a>, <a href="/bookworm/manpages/hostname.7.en.html">hostname(7)</a>, <a href="/bookworm/bind9/named.8.en.html">named(8)</a></p> <p class="Pp">Name Server Operations Guide for BIND</p> </section> </div> <table class="foot"> <tbody><tr> <td class="foot-date">2023-02-05</td> <td class="foot-os">4th Berkeley Distribution</td> </tr> </tbody></table> </div> </div> </div> <div id="footer"> <p><table> <tr> <td> Source file: </td> <td> resolv.conf.5.en.gz (from <a href="http://snapshot.debian.org/package/manpages/6.03-2/">manpages 6.03-2</a>) </td> </tr> <tr> <td> Source last updated: </td> <td> 2023-04-30T10:42:06Z </td> </tr> <tr> <td> Converted to HTML: </td> <td> 2024-11-18T15:13:20Z </td> </tr> </table></p> <hr> <div id="fineprint"> <p>debiman c35ad7d, see <a href="https://github.com/Debian/debiman/">github.com/Debian/debiman</a>. Found a problem? See the <a href="/faq.html">FAQ</a>.</p> </div> </div> <script type="application/ld+json"> "{\"@context\":\"http://schema.org\",\"@type\":\"BreadcrumbList\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"Thing\",\"@id\":\"/contents-bookworm.html\",\"name\":\"bookworm\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"Thing\",\"@id\":\"/bookworm/manpages/index.html\",\"name\":\"manpages\"}},{\"@type\":\"ListItem\",\"position\":3,\"item\":{\"@type\":\"Thing\",\"@id\":\"\",\"name\":\"resolv.conf(5)\"}}]}" </script>