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