From 3533065ed20a7fe14cc00968e3fa8c1beff072b2 Mon Sep 17 00:00:00 2001 From: Thomas Mangin Date: Mon, 21 Jan 2019 07:54:41 +0000 Subject: [PATCH] plugin/hosts reload the hosts file every 5 seconds (#2478) * inform users of the reload feature * modified as requested --- plugin/hosts/README.md | 3 +++ 1 file changed, 3 insertions(+) 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