aboutsummaryrefslogtreecommitdiff
path: root/plugin/file/README.md
diff options
context:
space:
mode:
authorGravatar marqc <marqc@users.noreply.github.com> 2018-09-29 17:50:49 +0200
committerGravatar Miek Gieben <miek@miek.nl> 2018-09-29 16:50:49 +0100
commit552aab723c05088d049f085ee3b480dac1dbdba7 (patch)
treecd6ecf70b028a1b4412728b967be9d1abd26678c /plugin/file/README.md
parenta80ec6096f71337600ff2694040be1efb7b6b87b (diff)
downloadcoredns-552aab723c05088d049f085ee3b480dac1dbdba7.tar.gz
coredns-552aab723c05088d049f085ee3b480dac1dbdba7.tar.zst
coredns-552aab723c05088d049f085ee3b480dac1dbdba7.zip
Configurable zone reload interval in file plugin (#2110)
* Configurable zone reload interval in file plugin * passing reload config from auto plugin to file plugin. removed noReload property from Zone struct. fixed tests based on short file reload hack
Diffstat (limited to 'plugin/file/README.md')
-rw-r--r--plugin/file/README.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugin/file/README.md b/plugin/file/README.md
index 1643251c2..8f7bdbf97 100644
--- a/plugin/file/README.md
+++ b/plugin/file/README.md
@@ -27,6 +27,7 @@ If you want to round robin A and AAAA responses look at the *loadbalance* plugin
~~~
file DBFILE [ZONES... ] {
transfer to ADDRESS...
+ reload DURATION
no_reload
upstream [ADDRESS...]
}
@@ -36,8 +37,10 @@ file DBFILE [ZONES... ] {
the direction. **ADDRESS** must be denoted in CIDR notation (127.0.0.1/32 etc.) or just as plain
addresses. The special wildcard `*` means: the entire internet (only valid for 'transfer to').
When an address is specified a notify message will be send whenever the zone is reloaded.
-* `no_reload` by default CoreDNS will try to reload a zone every minute and reloads if the
- SOA's serial has changed. This option disables that behavior.
+* `reload` interval to perform reload of zone if SOA version changes. Default is one minute.
+ Value of `0` means to not scan for changes and reload. eg. `30s` checks zonefile every 30 seconds
+ and reloads zone when serial changes.
+* `no_reload` deprecated. Sets reload to 0.
* `upstream` defines upstream resolvers to be used resolve external names found (think CNAMEs)
pointing to external names. This is only really useful when CoreDNS is configured as a proxy, for
normal authoritative serving you don't need *or* want to use this. **ADDRESS** can be an IP