Update README.md (#1375)

More minor textual fixes.
This commit is contained in:
cricketliu 2018-01-10 23:31:52 -08:00 committed by Miek Gieben
parent 655231a599
commit 3e298d2396

View file

@ -2,14 +2,14 @@
## Name ## Name
*auto* - enables serving zone data from an RFC 1035-style master file which is automatically picked up from disk. *auto* - enables serving zone data from an RFC 1035-style master file, which is automatically picked up from disk.
## Description ## Description
The *auto* plugin is used for an "old-style" DNS server. It serves from a preloaded file that exists The *auto* plugin is used for an "old-style" DNS server. It serves from a preloaded file that exists
on disk. If the zone file contains signatures (i.e. is signed, i.e. DNSSEC) correct DNSSEC answers on disk. If the zone file contains signatures (i.e. is signed, i.e. using DNSSEC) correct DNSSEC answers
are returned. Only NSEC is supported! If you use this setup *you* are responsible for resigning the are returned. Only NSEC is supported! If you use this setup *you* are responsible for re-signing the
zonefile. New zones or changed zone are automatically picked up from disk. zonefile. New or changed zones are automatically picked up from disk.
## Syntax ## Syntax
@ -26,15 +26,15 @@ are used.
* `directory` loads zones from the speficied **DIR**. If a file name matches **REGEXP** it will be * `directory` loads zones from the speficied **DIR**. If a file name matches **REGEXP** it will be
used to extract the origin. **ORIGIN_TEMPLATE** will be used as a template for the origin. Strings used to extract the origin. **ORIGIN_TEMPLATE** will be used as a template for the origin. Strings
like `{<number>}` are replaced with the respective matches in the file name, i.e. `{1}` is the like `{<number>}` are replaced with the respective matches in the file name, e.g. `{1}` is the
first match, `{2}` is the second, etc.. The default is: `db\.(.*) {1}` e.g. from a file with the first match, `{2}` is the second. The default is: `db\.(.*) {1}` i.e. from a file with the
name `db.example.com`, the extracted origin will be `example.com`. **TIMEOUT** specifies how often name `db.example.com`, the extracted origin will be `example.com`. **TIMEOUT** specifies how often
CoreDNS should scan the directory, the default is every 60 seconds. This value is in seconds. CoreDNS should scan the directory; the default is every 60 seconds. This value is in seconds.
The minimum value is 1 second. The minimum value is 1 second.
* `no_reload` by default CoreDNS will try to reload a zone every minute and reloads if the * `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. SOA's serial has changed. This option disables that behavior.
* `upstream` defines upstream resolvers to be used resolve external names found (think CNAMEs) * `upstream` defines upstream resolvers to be used resolve external names found (think CNAMEs)
pointing to external names. **ADDRESS** can be an IP address, and IP:port or a string pointing to pointing to external names. **ADDRESS** can be an IP address, an IP:port or a string pointing to
a file that is structured as /etc/resolv.conf. a file that is structured as /etc/resolv.conf.
All directives from the *file* plugin are supported. Note that *auto* will load all zones found, All directives from the *file* plugin are supported. Note that *auto* will load all zones found,