freebsd-skq/lib/libc/resolv
vangyzen 60458e70da 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.

https://lists.freebsd.org/pipermail/freebsd-arch/2015-October/017342.html

Reviewed by:	kp, wblock
Discussed with:	jilles, imp, alfred
MFC after:	1 month
Relnotes:	yes
Sponsored by:	Dell Inc.
Differential Revision:	https://reviews.freebsd.org/D3867
2015-10-14 14:26:44 +00:00
..
h_errno.c Add declarations to eliminate -Wmissing-prototypes warnings 2015-09-20 04:26:55 +00:00
herror.c Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
Makefile.inc Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
mtctxres.c
res_comp.c Add support for '_' occurring at the beginning or end of a name 2015-06-10 16:15:22 +00:00
res_data.c Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
res_debug.c Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. 2015-09-22 15:57:26 +00:00
res_debug.h
res_findzonecut.c Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
res_init.c resolver: automatically reload /etc/resolv.conf 2015-10-14 14:26:44 +00:00
res_mkquery.c Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
res_mkupdate.c Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. 2015-09-22 15:57:26 +00:00
res_private.h
res_query.c Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
res_send.c Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. 2015-09-22 15:57:26 +00:00
res_state.c resolver: automatically reload /etc/resolv.conf 2015-10-14 14:26:44 +00:00
res_update.c Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00
Symbol.map Update our stub resolver to final version of libbind. 2014-08-12 12:36:06 +00:00