diff options
author | vangyzen <vangyzen@FreeBSD.org> | 2015-12-19 02:41:31 +0000 |
---|---|---|
committer | vangyzen <vangyzen@FreeBSD.org> | 2015-12-19 02:41:31 +0000 |
commit | b6f246520d532d80d0838a3b005db8ef8e9e9a47 (patch) | |
tree | 83f00a984fb131904f8621162a28cdfffaa7e50e /share/man | |
parent | ec40565958ba8acbc1f4b137261df32c9fc37568 (diff) | |
download | FreeBSD-src-b6f246520d532d80d0838a3b005db8ef8e9e9a47.zip FreeBSD-src-b6f246520d532d80d0838a3b005db8ef8e9e9a47.tar.gz |
MFC r289315, r292216
resolver: automatically reload /etc/resolv.conf
On each resolver query, use stat(2) to see if the modification time
of /etc/resolv.conf has changed. If so, reload the file and reinitialize
the resolver library. However, only call stat(2) if at least two seconds
have passed since the last call to stat(2), since calling it on every
query could kill performance.
This new behavior is enabled by default. Add a "reload-period" option
to disable it or change the period of the test.
Document this behavior and option in resolv.conf(5).
Polish the man page just enough to appease igor.
Relnotes: yes
Sponsored by: Dell Inc.
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man5/resolver.5 | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/share/man/man5/resolver.5 b/share/man/man5/resolver.5 index 6c6c9aa..fa441a4 100644 --- a/share/man/man5/resolver.5 +++ b/share/man/man5/resolver.5 @@ -32,7 +32,7 @@ .\" @(#)resolver.5 8.1 (Berkeley) 6/5/93 .\" $FreeBSD$ .\" -.Dd December 25, 2013 +.Dd October 12, 2015 .Dt RESOLVER 5 .Os .Sh NAME @@ -179,6 +179,19 @@ the resolver from obeying the standard and .Sy search rules with the given name. +.It Sy reload-period: Ns Ar n +The resolver checks the modification time of +.Pa /etc/resolv.conf +every +.Ar n +seconds. +If +.Pa /etc/resolv.conf +has changed, it is automatically reloaded. +The default for +.Ar n +is two seconds. +Setting it to zero disables the file check. .El .Pp Options may also be specified as a space or tab separated list using the @@ -195,8 +208,7 @@ If more than one instance of these keywords is present, the last instance will override. .Pp The keyword and value must appear on a single line, and the keyword -(e.g.\& -.Sy nameserver ) +.Pq for example, Sy nameserver must start the line. The value follows the keyword, separated by white space. .Sh FILES |