Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
89a2912c
Commit
89a2912c
authored
Oct 18, 2016
by
Miek Gieben
Committed by
GitHub
Oct 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation updates (#340)
parent
a6b033a9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
22 deletions
+41
-22
README.md
README.md
+34
-20
middleware.md
middleware.md
+7
-2
No files found.
README.md
View file @
89a2912c
...
...
@@ -16,22 +16,24 @@ are able to do what you want with your DNS data. And if not: write some middlewa
Currently CoreDNS is able to:
*
Serve zone data from a file; both DNSSEC (NSEC only) and DNS are supported (middleware/file).
*
Retrieve zone data from primaries, i.e., act as a secondary server (AXFR only) (middleware/secondary).
*
Sign zone data on-the-fly (middleware/dnssec).
*
Load balancing of responses (middleware/loadbalance).
*
Allow for zone transfers, i.e., act as a primary server (middleware/file).
*
Caching (middleware/cache).
*
Health checking (middleware/health).
*
Serve zone data from a file; both DNSSEC (NSEC only) and DNS are supported (
*file*
).
*
Retrieve zone data from primaries, i.e., act as a secondary server (AXFR only) (
*secondary*
).
*
Sign zone data on-the-fly (
*dnssec*
).
*
Load balancing of responses (
*loadbalance*
).
*
Allow for zone transfers, i.e., act as a primary server (
*file*
).
*
Automatically load zone files from disk (
*auto*
)
*
Caching (
*cache*
).
*
Health checking endpoint (
*health*
).
*
Use etcd as a backend, i.e., a 101.5% replacement for
[
SkyDNS
](
https://github.com/skynetservices/skydns
)
(
middleware/etcd
)
.
*
Use k8s (kubernetes) as a backend (middleware/kubernetes).
*
Serve as a proxy to forward queries to some other (recursive) nameserver (middleware/proxy).
*
Rewrite queries (qtype, qclass and qname) (middleware/rewrite).
*
Provide metrics (by using Prometheus) (middleware/metrics).
*
Provide Logging (middleware/log).
*
Support the CH class:
`version.bind`
and friends (middleware/chaos).
*
Profiling support (middleware/pprof).
[
SkyDNS
](
https://github.com/skynetservices/skydns
)
(
*etcd*
)
.
*
Use k8s (kubernetes) as a backend (
*kubernetes*
).
*
Serve as a proxy to forward queries to some other (recursive) nameserver (
*proxy*
).
*
Provide metrics (by using Prometheus) (
*metrics*
).
*
Provide query (
*log*
) and error (
*error*
) logging.
*
Support the CH class:
`version.bind`
and friends (
*chaos*
).
*
Profiling support (
*pprof*
).
*
Rewrite queries (qtype, qclass and qname) (
*rewrite*
).
*
Echo back the IP address, transport and port number used (
*whoami*
).
Each of the middlewares has a README.md of its own.
...
...
@@ -45,11 +47,11 @@ 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
be
[
found here
](
https://
blog.coredns.io
)
. 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
).
Caddyfile when
forked
).
## Compilation
...
...
@@ -67,17 +69,29 @@ 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:
listening on port
53 (override with
`-dns.port`
)
, it should show the following:
~~~
txt
.:
20
53
.:53
2016/09/18 09:20:50 [INFO] CoreDNS-001
CoreDNS-001
~~~
Any query send to port
20
53 should return some information; your sending address, port and protocol
Any query send to port 53 should return some information; your sending address, port and protocol
used.
If you have a Corefile without a port number specified it will, by default, use port 53, but you
can override the port with the
`-dns.port`
flag:
~~~
txt
.: {
proxy . 8.8.8.8:53
log stdout
}
~~~
`./coredns -dns.port 1053`
, runs the server on port 1053.
Start a simple proxy, you'll need to be root to start listening on port 53.
`Corefile`
contains:
...
...
middleware.md
View file @
89a2912c
...
...
@@ -33,7 +33,12 @@ something has been written to the client (by the middleware).
TODO(miek): text here on how to hook up middleware.
# Documentation
## Metrics
When exporting metrics the
*Namespace*
should be
`middleware.Namespace`
(="coredns"), and the
*Subsystem*
should be the name of the middleware.
## Documentation
Each middleware should have a README.md explaining what the middleware does and how it is
configured. The file should have the following layout:
...
...
@@ -44,7 +49,7 @@ configured. The file should have the following layout:
More sections are of course possible.
## Style
##
#
Style
We use the Unix manual page style:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment