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 /lib/libc/resolv/res_debug.c | |
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 'lib/libc/resolv/res_debug.c')
0 files changed, 0 insertions, 0 deletions