Commit graph

788 commits

Author SHA1 Message Date
Miek Gieben
b3b6fe48f6 beef up some examples 2016-04-03 20:30:37 +01:00
Miek Gieben
4e723da191 Add text about the test server 2016-04-03 20:13:33 +01:00
Miek Gieben
33d5223855 typos 2016-04-03 20:07:15 +01:00
Miek Gieben
80007f4729 Better README 2016-04-03 19:05:49 +01:00
Miek Gieben
7f36a853f7 Fix all the log replacers 2016-04-03 17:16:46 +01:00
Miek Gieben
dd537b163d Document log replacements
Rename latency to duration.
2016-04-03 17:05:16 +01:00
Miek Gieben
8d0d324f27 Dont normalize * 2016-04-03 16:08:10 +01:00
Miek Gieben
3b25bfd7ae Fix Corefile parsing
Fix some file/secondary issues when parsing a Corefile, also allow

for multiple origins to be specified. Also don't fail on startup when

a zonetransfer fails.



Fixes: #54
2016-04-03 15:52:23 +01:00
Miek Gieben
e41e8683bd prometheus: add docs and fix varz a little 2016-04-03 09:15:55 +01:00
Miek Gieben
f58f1e4285 Add secondary support
Allow specifying a primary server and retrieve the zone's content.

Add tests and an Expired bool to zone struct, to stop server zones

that are expired. The zone is retrieved on Startup, no updates of

changed content are done. We also don't respond to notifies yet.
2016-04-03 09:02:34 +01:00
Miek Gieben
7fb959470e Rename Standard to Normalize
Some doc updates and tweaks.
2016-04-03 07:44:28 +01:00
Miek Gieben
6ecbdef112 Add notifies to master servers
This adds a bunch of supporting code to send notifies to a primary

name server.
2016-04-03 07:37:41 +01:00
Miek Gieben
4a2a95561f Answer REFUSED when we don't host the zone
Change from SERVFAIL to diff. between error and no such zone hosted.

Fixes: #68
2016-04-02 18:11:56 +01:00
Miek Gieben
2adbdf34d9 Use qname/qtype for lookups
Drop the use of dns.RR when in fact the only thing we use is the name

and type of the RR. Cleans up a bunch of stuff and also stops the weird

making of dns.RRs just for a lookup. Should safe some memory as well.



Fixes: #66
2016-04-02 17:49:13 +01:00
Miek Gieben
9b21646954 empty non-terminal support
When looking for a name in tree, return wether we got to a longer one -

if so we had an ent. Add tests + dnssec tests and refactor the tests as

well a bit.
2016-04-02 16:56:16 +01:00
Miek Gieben
d8ab95cd18 Merge pull request #64 from mdlayher/middleware-readme
middleware: change documentation filenames to README.md
2016-04-02 08:00:32 +01:00
Matt Layher
453a8a1982 middleware: change documentation filenames to README.md 2016-04-01 18:26:18 -04:00
Miek Gieben
b915393aa0 Add Benchmark functions
Add benchmark for normal and DNSSEC lookup. We can probably shave quite
a lot of these, but first lets actually get to something that is
serving.
2016-03-31 22:10:17 +01:00
Miek Gieben
374223f9a9 Merge pull request #63 from miekg/wildcards
Positive wildcare replies
2016-03-31 21:50:20 +01:00
Miek Gieben
09c94fa443 Positive wildcare replies
Reply to queries when you have a wildcard in the zone. This works
for DNS and DNSSEC. Thing missing is NODATA responses for that specific
wildcard.

Add wildcard_test.go as well.
2016-03-31 21:47:44 +01:00
Miek Gieben
24394f0d4d Merge pull request #58 from miekg/dnssec-serving-nsec
Get positive dnssec stuff going
2016-03-30 20:52:09 +01:00
Miek Gieben
3591e2a6aa Add nameerror proof 2016-03-30 20:47:38 +01:00
Miek Gieben
8feef98188 Fix closest encloser 2016-03-30 20:13:48 +01:00
Miek Gieben
bf6d90600b add closest encloser stuff 2016-03-30 16:45:02 +00:00
Miek Gieben
3838eabda4 Merge branch 'dnssec-serving-nsec' of github.com:miekg/coredns into dnssec-serving-nsec 2016-03-30 13:27:09 +00:00
Miek Gieben
9ba31ceb87 Think about wildcards 2016-03-30 13:26:51 +00:00
Miek Gieben
ec69798ca2 Add the nsecs for nxdomain 2016-03-30 13:26:51 +00:00
Miek Gieben
b67ecb3e55 More nameerror stuff 2016-03-30 13:26:51 +00:00
Miek Gieben
b4242a7d5d fixes and a wildcard test file as well 2016-03-30 13:25:45 +00:00
Miek Gieben
4be4d92ccb Fix positive replies 2016-03-30 13:25:45 +00:00
Miek Gieben
547a4ab2a8 More stuff 2016-03-30 13:25:45 +00:00
Miek Gieben
48f7d55f27 Get positive dnssec stuff going 2016-03-30 13:25:45 +00:00
Miek Gieben
4a313d67ff Merge pull request #61 from miekg/canonical-sorting
Add canonical sorting
2016-03-30 14:16:50 +01:00
Miek Gieben
162dca6eeb Add canonical sorting
Add a low-allocation canonical sorting function that can be used in
middleware.

This implements the tests from rfc4034 correctly.
2016-03-30 13:12:27 +00:00
Miek Gieben
25855b72aa Think about wildcards 2016-03-29 21:25:06 +01:00
Miek Gieben
0d4e1dcf4d Add the nsecs for nxdomain 2016-03-29 20:59:54 +01:00
Miek Gieben
b52ee1ab59 merge 2016-03-29 20:48:56 +01:00
Miek Gieben
de1f2e174c More nameerror stuff 2016-03-29 20:47:45 +01:00
Miek Gieben
19761022cc fixes and a wildcard test file as well 2016-03-29 13:24:19 +00:00
Miek Gieben
cefe5d75ee Fix positive replies 2016-03-29 13:22:17 +00:00
Miek Gieben
a3fc72f7b6 More stuff 2016-03-29 08:17:45 +01:00
Miek Gieben
acca8fc017 Get positive dnssec stuff going 2016-03-28 21:18:16 +01:00
Miek Gieben
1a455f7bc4 Merge pull request #55 from miekg/transfer-out
Transfer out
2016-03-28 18:26:14 +01:00
Miek Gieben
e56d206542 Support outgoing zone transfers
These can be enabled by adding "transfer out" to the Corefile. Without
it no AXFR is allowed.

For now only AXFR and no IXFR. No TSIG and no ACLs.
2016-03-28 18:23:17 +01:00
Miek Gieben
6324bb1fa7 Scrub the returned result 2016-03-28 11:29:50 +01:00
Miek Gieben
3541bc8b2a Add DNSSEC test already; but disable it 2016-03-28 11:28:47 +01:00
Miek Gieben
23ed465b7e Merge pull request #51 from miekg/factor-testing
Add testing package
2016-03-28 10:51:38 +01:00
Miek Gieben
6eae17b0bd Add testing package
This already includes a bunch of helper functions that aid in testing.
Factor out etcd and file testing to use this package.

Fixes: #50
2016-03-28 10:49:28 +01:00
Miek Gieben
5a919198ac Merge pull request #45 from miekg/etcd-stub
Etcd stub
2016-03-28 10:18:08 +01:00
Miek Gieben
4be4e7430c Merge pull request #49 from miekg/zonefile-fix
Zonefile fix
2016-03-28 10:17:52 +01:00