docs: document default startup (#266)
Some small additions to the documentation.
This commit is contained in:
parent
ffa5530d0f
commit
b440b1c8f6
2 changed files with 29 additions and 15 deletions
33
README.md
33
README.md
|
@ -34,17 +34,16 @@ Each of the middlewares has a README.md of its own.
|
|||
|
||||
## Status
|
||||
|
||||
I'm using CoreDNS is my primary, authoritative, nameserver for my domains (`miek.nl`, `atoom.net`
|
||||
and a few others). CoreDNS should be stable enough to provide you with good DNS(SEC) service.
|
||||
CoreDNS can be used as a authoritative nameserver for your domains, and should be stable enough to
|
||||
provide you with good DNS(SEC) service.
|
||||
|
||||
There are still few [issues](https://github.com/miekg/coredns/issues), and work is ongoing on making
|
||||
things fast and to reduce the memory usage.
|
||||
|
||||
All in all, CoreDNS should be able to provide you with enough functionality to replace parts of
|
||||
BIND 9, Knot, NSD or PowerDNS and SkyDNS.
|
||||
Most documentation is in the source and some blog articles can be [found
|
||||
here](https://miek.nl/tags/coredns/). If you do want to use CoreDNS in production, please let us
|
||||
know and how we can help.
|
||||
All in all, CoreDNS should be able to provide you with enough functionality to replace parts of BIND
|
||||
9, Knot, NSD or PowerDNS and SkyDNS. Most documentation is in the source and some blog articles can
|
||||
be [found here](https://miek.nl/tags/coredns/). If you do want to use CoreDNS in production, please
|
||||
let us know and how we can help.
|
||||
|
||||
<https://caddyserver.com/> is also full of examples on how to structure a Corefile (renamed from
|
||||
Caddyfile when I forked it).
|
||||
|
@ -52,8 +51,7 @@ Caddyfile when I forked it).
|
|||
## Compilation
|
||||
|
||||
CoreDNS (as a servertype plugin for Caddy) has a dependency on Caddy, but this is not different than
|
||||
any other Go dependency. You have the source of CoreDNS, this should preferably be downloaded under
|
||||
your `$GOPATH`. Get all dependencies:
|
||||
any other Go dependency. If you have the source of CoreDNS, get all dependencies:
|
||||
|
||||
go get ./...
|
||||
|
||||
|
@ -65,6 +63,18 @@ This should yield a `coredns` binary.
|
|||
|
||||
## Examples
|
||||
|
||||
When starting CoreDNS without any configuration, it loads the `whoami` middleware and starts
|
||||
listening on port 2053, it should show the following:
|
||||
|
||||
~~~ txt
|
||||
.:2053
|
||||
2016/09/18 09:20:50 [INFO] CoreDNS-001 starting
|
||||
CoreDNS-001 starting
|
||||
~~~
|
||||
|
||||
Any query send to port 2053 should return some information; your sending address, port and protocol
|
||||
used.
|
||||
|
||||
Start a simple proxy, you'll need to be root to start listening on port 53.
|
||||
|
||||
`Corefile` contains:
|
||||
|
@ -80,8 +90,9 @@ Just start CoreDNS: `./coredns`.
|
|||
And then just query on that port (53). The query should be forwarded to 8.8.8.8 and the response
|
||||
will be returned. Each query should also show up in the log.
|
||||
|
||||
Serve the (NSEC) DNSSEC-signed `example.org` on port 1053, with errors and logging sent to stdout. Allow zone
|
||||
transfers to everybody, but specically mention 1 IP address so that CoreDNS can send notifies to it.
|
||||
Serve the (NSEC) DNSSEC-signed `example.org` on port 1053, with errors and logging sent to stdout.
|
||||
Allow zone transfers to everybody, but specically mention 1 IP address so that CoreDNS can send
|
||||
notifies to it.
|
||||
|
||||
~~~ txt
|
||||
example.org:1053 {
|
||||
|
|
|
@ -31,17 +31,20 @@ file dbfile [zones... ] {
|
|||
~~~
|
||||
|
||||
* `transfer` enables zone transfers. It may be specified multiples times. *To* or *from* signals
|
||||
the direction. Addresses 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').
|
||||
the direction. Addresses 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 reload a zone from disk whenever it detects a change to the
|
||||
file. This option disables that behavior.
|
||||
|
||||
## Examples
|
||||
|
||||
Load the `miek.nl` zone from `miek.nl.signed` and allow transfers to the internet.
|
||||
Load the `example.org` zone from `example.org.signed` and allow transfers to the internet, but send
|
||||
notifies to 10.240.1.1
|
||||
|
||||
~~~
|
||||
file miek.nl.signed miek.nl {
|
||||
file example.org.signed example.org {
|
||||
transfer to *
|
||||
transfer to 10.240.1.1
|
||||
}
|
||||
~~~
|
||||
|
|
Loading…
Add table
Reference in a new issue