Miek Gieben
e408c81a8c
Add more tests and include the forgotten chaos_test.go as well
2016-03-25 10:32:12 +00:00
Miek Gieben
5d70567f1c
Implement chaos middleware
...
This allows for CH TXT queries that return some information about
the server and/or the authors (or whatever you put in there).
2016-03-25 08:36:32 +00:00
Miek Gieben
9712bade34
fix doc
2016-03-24 17:55:46 +00:00
Miek Gieben
2caddcf761
Small optimization in round robin load balancing
2016-03-24 17:51:28 +00:00
Miek Gieben
430f11a6d2
Add context.WithTimeout
...
Closes #41
2016-03-24 17:46:14 +00:00
Miek Gieben
4fe39f9e9e
Port tests from SkyDNS
...
This adds *most* of the tests from SkyDNS, things lacking is
the stubzone checking, groups and the trim prefix. These
will be added in subsequent PRs and in separate test files.
2016-03-24 17:31:01 +00:00
Miek Gieben
78d2e31ec1
Add Stub resolving
...
SkyDNS can forward requests from one instance to another.
Add this base infrastructure for this feature to CoreDNS.
Add more tests as well.
2016-03-24 09:20:53 +00:00
Miek Gieben
163e5d8e71
fixed
2016-03-23 23:20:50 +00:00
Miek Gieben
55aa436234
more stuff
2016-03-23 23:06:16 +00:00
Miek Gieben
a655a5735b
Slowly adding all the tests from skydns
2016-03-23 22:59:05 +00:00
Miek Gieben
18ef25e0d5
Merge pull request #33 from miekg/middleware/rewrite2
...
Rewrite the name of the query as well
2016-03-23 21:47:47 +00:00
Miek Gieben
e954332b9f
Allow rewriting of the the name of the query as well. And improve
...
the docs a little.
2016-03-23 21:45:27 +00:00
Miek Gieben
b167411bba
Add roundrobin middleware
...
This middleware allows you to round robin a/aaaa records in a reply and
maybe more in the future (i.e.) sort a packet?
2016-03-23 21:38:35 +00:00
Miek Gieben
7d834ce037
Remove reflect middleware - it was only a toy
2016-03-23 10:54:50 +00:00
Miek Gieben
bae1fb7aa2
Add build tag to the tests
2016-03-23 10:46:33 +00:00
Miek Gieben
8f9f2cd1ab
Add etcd middleware
...
This middleware acts in the same way as SkyDNS. We might add options
to allow it to be behave different, but for now it will suffice.
A Corefile like:
.:1053 {
etcd miek.nl
proxy . 8.8.8.8:53
}
will perform lookup in etcd and proxy everything not miek.nl to Google
for further resolution.
The internal etcd forwarding *also* uses the proxy infrastructure,
meaning you get health check and such for (almost) free
2016-03-23 10:41:40 +00:00
Miek Gieben
5229db0fe9
Dump rewrite.md here
2016-03-20 09:40:35 +00:00
Miek Gieben
2454d23cab
only rewrite types when they are given in uppercase
2016-03-19 22:12:07 +00:00
Miek Gieben
c3e951818f
Update docs
2016-03-19 20:59:10 +00:00
Miek Gieben
47fca9a8fc
Proxy cleanups
...
Remove things not supported, fix docs.
2016-03-19 20:53:37 +00:00
Miek Gieben
ec84cb1270
Random fixes and make servfail the special return code
2016-03-19 20:17:44 +00:00
Miek Gieben
78432f78a9
Fix upstream tests
2016-03-19 16:11:30 +00:00
Miek Gieben
ae5783b7c4
Errors directive testing and fixing
...
Drop a few tests and make it work and compile.
Also add the documentation: errors.md
2016-03-19 13:37:20 +00:00
Miek Gieben
afc4b85d86
put docs in the middleware directory
2016-03-19 11:21:23 +00:00
Miek Gieben
39dbd447b5
Fix middleware log
2016-03-19 11:16:08 +00:00
Miek Gieben
f907311cdf
Use context.Context
...
Rename the old Context to State and use context.Context in the
middleware for intra-middleware communication and more.
2016-03-19 07:32:50 +00:00
Miek Gieben
3ec0d9fe6b
First commit
2016-03-18 20:57:35 +00:00