coredns/plugin
Miek Gieben fc667b98e0
Fix EDNS0 compliance (#2357)
* Fix EDNS0 compliance

Do SizeAndDo in the server (ScrubWriter) and remove all uses of this
from the plugins. Also *always* do it. This is to get into compliance
for https://dnsflagday.net/.

The pkg/edns0 now exports the EDNS0 options we understand; this is
exported to allow plugins add things there. The *rewrite* plugin used
this to add custom EDNS0 option codes that the server needs to
understand.

This also needs a new release of miekg/dns because it triggered a
race-condition that was basicly there forever.

See:
* https://github.com/miekg/dns/issues/857
* https://github.com/miekg/dns/pull/859

Running a test instance and pointing the https://ednscomp.isc.org/ednscomp
to it shows the tests are now fixed:

~~~
EDNS Compliance Tester
Checking: 'miek.nl' as at 2018-12-01T17:53:15Z

miek.nl. @147.75.204.203 (drone.coredns.io.): dns=ok edns=ok edns1=ok edns@512=ok ednsopt=ok edns1opt=ok do=ok ednsflags=ok docookie=ok edns512tcp=ok optlist=ok
miek.nl. @2604:1380:2002:a000::1 (drone.coredns.io.): dns=ok edns=ok edns1=ok edns@512=ok ednsopt=ok edns1opt=ok do=ok ednsflags=ok docookie=ok edns512tcp=ok optlist=ok

All Ok
Codes
ok - test passed.
~~~

Signed-off-by: Miek Gieben <miek@miek.nl>

Signed-off-by: Miek Gieben <miek@miek.nl>

* typos in comments

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-12-06 21:18:11 +00:00
..
auto fix formatting (#2302) 2018-11-13 16:46:48 -05:00
autopath Update README.md (#2215) 2018-10-18 21:42:53 +00:00
bind Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
cache remove trailing whitespace (#2260) 2018-11-01 19:37:13 +00:00
chaos Fix EDNS0 compliance (#2357) 2018-12-06 21:18:11 +00:00
debug Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
deprecated Implement deprecation notice for 1.1.4 (#1833) 2018-05-24 14:30:01 +01:00
dnssec Fix EDNS0 compliance (#2357) 2018-12-06 21:18:11 +00:00
dnstap Better naming (#2104) 2018-09-19 08:16:04 +01:00
erratic Fix EDNS0 compliance (#2357) 2018-12-06 21:18:11 +00:00
errors recommended (#2283) 2018-11-09 20:32:43 +00:00
etcd Set SOA record TTL as min of TTL/MINIMUM (#2295) 2018-11-16 08:42:49 -05:00
federation plugin/federation: Add upstream option to federation (#2177) 2018-10-15 12:43:03 -04:00
file Fix EDNS0 compliance (#2357) 2018-12-06 21:18:11 +00:00
forward plugin/forward: remove truncate logic (#2320) 2018-12-01 09:07:42 +00:00
health Fix a typo in health plugin readme (#2274) 2018-11-06 08:54:53 -08:00
hosts plugin/host: parse file without holding lock (#2270) 2018-11-03 13:00:07 -07:00
kubernetes allow ttl 0 (#2348) 2018-11-30 13:05:49 -05:00
loadbalance Do not muck with ordering of XFRs (#2329) 2018-11-21 08:38:19 +01:00
log Fix EDNS0 compliance (#2357) 2018-12-06 21:18:11 +00:00
loop clean pre-submit checks (#2367) 2018-12-05 21:20:20 +00:00
metadata Typo fixes (#2031) 2018-08-14 08:55:55 -07:00
metrics Update Prometheus to 0.9.1 (#2360) 2018-12-01 22:38:03 +00:00
nsid Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
pkg Fix EDNS0 compliance (#2357) 2018-12-06 21:18:11 +00:00
pprof Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
proxy Ensure Re-register of metrics variables after a reload (#2080) 2018-09-19 02:11:24 -07:00
reload Typo fixes (#2031) 2018-08-14 08:55:55 -07:00
rewrite Fix EDNS0 compliance (#2357) 2018-12-06 21:18:11 +00:00
root Typo fixes (#2031) 2018-08-14 08:55:55 -07:00
route53 Add the missed braces. (#2330) 2018-11-21 07:44:17 -08:00
secondary Fix ineffassign (#1959) 2018-07-28 10:32:13 +01:00
template Ensure Re-register of metrics variables after a reload (#2080) 2018-09-19 02:11:24 -07:00
test plugin/test: Fix documentation (#1948) 2018-07-07 08:30:57 +01:00
tls Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
trace Add request and response context to traces (#2162) 2018-10-05 20:13:16 +00:00
whoami Fix EDNS0 compliance (#2357) 2018-12-06 21:18:11 +00:00
backend.go all: fix plugin import ordering (#1717) 2018-04-22 08:34:35 +01:00
backend_lookup.go Fix EDNS0 compliance (#2357) 2018-12-06 21:18:11 +00:00
log_test.go Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
normalize.go Better naming (#2104) 2018-09-19 08:16:04 +01:00
normalize_test.go CIDR query routing (#1159) 2017-10-24 10:16:03 +01:00
plugin.go fix typo (#2272) 2018-11-05 05:59:24 -08:00