aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2017-01-22 08:14:48 +0000
committerGravatar GitHub <noreply@github.com> 2017-01-22 08:14:48 +0000
commit166c822d91432cb0b06afaad9440678d3bf9e39d (patch)
tree33fe26544e1ab5b359bb0a2d090cce93107d5365 /README.md
parentadfd7d5b195f244234b577c6103224200d85c714 (diff)
downloadcoredns-166c822d91432cb0b06afaad9440678d3bf9e39d.tar.gz
coredns-166c822d91432cb0b06afaad9440678d3bf9e39d.tar.zst
coredns-166c822d91432cb0b06afaad9440678d3bf9e39d.zip
docs: update the zone specification (#490)
Add more words about how to specify the zone:port in a Corefile. Fixes #489
Diffstat (limited to 'README.md')
-rw-r--r--README.md28
1 files changed, 24 insertions, 4 deletions
diff --git a/README.md b/README.md
index 424efd21d..079eb28d2 100644
--- a/README.md
+++ b/README.md
@@ -141,13 +141,33 @@ nameserver *and* rewrite ANY queries to HINFO.
}
~~~
+### Zone Specification
-## What Remains To Be Done
+The following Corefile fragment is legal, but does not explicitly define a zone to listen on:
-* Optimizations.
-* Load testing.
-* The [issues](https://github.com/miekg/coredns/issues).
+~~~ txt
+{
+ # ...
+}
+~~~
+
+This defaults to `.:53` (or whatever `-dns.port` is).
+
+The next one only defines a port:
+~~~ txt
+:123 {
+ # ...
+}
+~~~
+This defaults to the root zone `.`, but can't be overruled with the `-dns.port` flag.
+
+Just specifying a zone, default to listening on port 53 (can still be overridden with `-dns.port`:
+~~~ txt
+example.org {
+ # ...
+}
+~~~
## Blog and Contact