diff options
author | 2019-01-21 07:54:41 +0000 | |
---|---|---|
committer | 2019-01-21 07:54:41 +0000 | |
commit | 3533065ed20a7fe14cc00968e3fa8c1beff072b2 (patch) | |
tree | 9bdff4b2ad19c9fc12433fa0337e75ab0d6cda50 /plugin/hosts | |
parent | ef8cb40688067f918d05829b1f47bb938f70d2a7 (diff) | |
download | coredns-3533065ed20a7fe14cc00968e3fa8c1beff072b2.tar.gz coredns-3533065ed20a7fe14cc00968e3fa8c1beff072b2.tar.zst coredns-3533065ed20a7fe14cc00968e3fa8c1beff072b2.zip |
plugin/hosts reload the hosts file every 5 seconds (#2478)
* inform users of the reload feature
* modified as requested
Diffstat (limited to 'plugin/hosts')
-rw-r--r-- | plugin/hosts/README.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/hosts/README.md b/plugin/hosts/README.md index 8ce1cc2e0..bdd1955c9 100644 --- a/plugin/hosts/README.md +++ b/plugin/hosts/README.md @@ -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 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. ## The hosts file |