mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
plugin/hosts reload the hosts file every 5 seconds (#2478)
* inform users of the reload feature * modified as requested
This commit is contained in:
committed by
Miek Gieben
parent
ef8cb40688
commit
3533065ed2
@@ -11,6 +11,9 @@ file that exists on disk. It checks the file for changes and updates the zones a
|
|||||||
plugin only supports A, AAAA, and PTR records. The hosts plugin can be used with readily
|
plugin only supports A, AAAA, and PTR records. The hosts plugin can be used with readily
|
||||||
available hosts files that block access to advertising servers.
|
available hosts files that block access to advertising servers.
|
||||||
|
|
||||||
|
The plugin reloads the content of the hosts file every 5 seconds. Upon reload, CoreDNS will use the new definitions.
|
||||||
|
Should the file be deleted, any inlined content will continue to be served. When the file is restored, it will then again be used.
|
||||||
|
|
||||||
This plugin can only be used once per Server Block.
|
This plugin can only be used once per Server Block.
|
||||||
|
|
||||||
## The hosts file
|
## The hosts file
|
||||||
|
|||||||
Reference in New Issue
Block a user