-.\" $OpenBSD: resolv.conf.5,v 1.60 2020/04/25 14:22:04 jca Exp $
+.\" $OpenBSD: resolv.conf.5,v 1.61 2021/07/17 17:14:29 deraadt Exp $
.\" $NetBSD: resolv.conf.5,v 1.7 1996/03/06 18:22:16 scottr Exp $
.\"
.\" Copyright (c) 1986, 1991 The Regents of the University of California.
.\"
.\" @(#)resolver.5 5.12 (Berkeley) 5/10/91
.\"
-.Dd $Mdocdate: April 25 2020 $
+.Dd $Mdocdate: July 17 2021 $
.Dt RESOLV.CONF 5
.Os
.Sh NAME
-.Nm resolv.conf , resolv.conf.tail
+.Nm resolv.conf
.Nd resolver configuration files
.Sh DESCRIPTION
The
if use of the DHCP protocol is specified for any interface
or if any DNS nameservers are configured.
.Pp
-If
-.Xr dhclient 8
-is used to configure an interface it
-will overwrite
-.Nm resolv.conf
-whenever the interface becomes the default gateway.
-The information written is generated from the DHCP options
-domain-name-servers, domain-name and domain-search and the
-contents of the file
-.Nm resolv.conf.tail
-are appended to the generated information.
-If dhclient has no domain-name-servers, no domain-name and
-no domain-search information then it will not
-overwrite the existing
-.Nm resolv.conf ,
-even if
-.Nm resolv.conf.tail
-exists.
-.Nm resolv.conf.tail
-is normally used to specify
-options that are not available via DHCP
-e.g. lookup or family.
-.Pp
A keyword and its values must appear on a single line, and the keyword (e.g.\&
.Ic nameserver )
must start the line.
.Ic search
line should appear; if more than one is present, the last one found
overwrites any values found in earlier lines.
-So if such a line appears in the
-.Nm resolv.conf.tail
-file, it should include all the domains that need to be searched.
.It Ic sortlist
Allows addresses returned by
.Xr gethostbyname 3
.Ic search
keyword of a system's
.Nm resolv.conf
-or
-.Nm resolv.conf.tail
file.
.It Ev RES_OPTIONS
A space-separated list of resolver options,
.Ic options
keyword of a system's
.Nm resolv.conf
-or
-.Nm resolv.conf.tail
file.
.El
.Sh FILES
-.Bl -tag -width "/etc/resolv.conf.tailXX" -compact
+.Bl -tag -width "/etc/resolv.confXX" -compact
.It Pa /etc/resolv.conf
-.It Pa /etc/resolv.conf.tail
.El
.Sh SEE ALSO
.Xr gethostbyname 3 ,
.Xr res_init 3 ,
.Xr hosts 5 ,
.Xr hostname 7 ,
-.Xr dhclient 8 ,
.Xr nsd 8 ,
+.Xr resolvd 8 ,
.Xr unbound 8 ,
.Xr unwind 8
.Sh HISTORY