coredns/plugin
Miek Gieben 7aaed71b92
Fix query for SOA record for delegated zone (#3875)
Addresses a bug in the file plugin where SOA queries to zone delegations are
inappropriately returned the SOA for the delegating zone, and not a downward
referral to the delegated zone.

Here is an example of what I believe the expected downward referral in response
to a SOA query for a delegated zone should be (note that no SOA record is
returned):

~~~
; <<>> DiG 9.11.3-1ubuntu1.5-Ubuntu <<>> @k.root-servers.net. miek.nl. SOA
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58381
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 3, ADDITIONAL: 7
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;miek.nl.                       IN      SOA

;; AUTHORITY SECTION:
nl.                     172800  IN      NS      ns1.dns.nl.
nl.                     172800  IN      NS      ns2.dns.nl.
nl.                     172800  IN      NS      ns3.dns.nl.

;; ADDITIONAL SECTION:
ns1.dns.nl.             172800  IN      A       194.0.28.53
ns2.dns.nl.             172800  IN      A       194.146.106.42
ns3.dns.nl.             172800  IN      A       194.0.25.24
ns1.dns.nl.             172800  IN      AAAA    2001:678:2c:0:194:0:28:53
ns2.dns.nl.             172800  IN      AAAA    2001:67c:1010:10::53
ns3.dns.nl.             172800  IN      AAAA    2001:678:20::24
~~~

See #3852 for the original fix.

Modified clouddns/route53 and removed the faulty tests there.

Signed-off-by: Miek Gieben <miek@miek.nl>
2020-05-11 07:51:02 -07:00
..
acl Fix CIDR in example (#3864) 2020-04-28 10:46:20 -04:00
any Move to CODEOWNERS (#3489) 2019-11-29 13:17:05 +00:00
auto Move to CODEOWNERS (#3489) 2019-11-29 13:17:05 +00:00
autopath introduce metric naming test (#3789) 2020-03-31 08:07:36 +02:00
azure Add private DNS support for azure plugin (#3516) 2020-03-10 15:22:23 -04:00
bind Move to CODEOWNERS (#3489) 2019-11-29 13:17:05 +00:00
bufsize fix description of bufsize plugin (#3873) 2020-05-04 07:02:58 -07:00
cache correct metrics name of cache size (#3805) 2020-04-03 09:30:06 -07:00
cancel presubmit: test README.md sections (#3644) 2020-01-31 11:37:24 +00:00
chaos Run go generate (#3856) 2020-04-27 10:38:44 +02:00
clouddns Fix query for SOA record for delegated zone (#3875) 2020-05-11 07:51:02 -07:00
debug plugin register (#3321) 2019-09-28 10:40:43 +01:00
deprecated all: simply registering plugins (#3287) 2019-09-20 08:02:30 +01:00
dns64 Fix readme test by removing extra ~ (#3850) 2020-04-23 21:03:15 -04:00
dnssec introduce metric naming test (#3789) 2020-03-31 08:07:36 +02:00
dnstap Update README.md (#3721) 2020-03-05 11:09:19 +01:00
erratic Move to CODEOWNERS (#3489) 2019-11-29 13:17:05 +00:00
errors Move to CODEOWNERS (#3489) 2019-11-29 13:17:05 +00:00
etcd Fix to: (#3840) 2020-04-22 14:55:07 +02:00
file Fix query for SOA record for delegated zone (#3875) 2020-05-11 07:51:02 -07:00
forward Fix plugin forward fuzz target (#3877) 2020-05-07 10:24:00 +02:00
grpc Cleanup metrics (#3776) 2020-03-26 09:17:33 +01:00
health doc: fix generated manual pages (#3571) 2019-12-29 13:35:17 +01:00
hosts introduce metric naming test (#3789) 2020-03-31 08:07:36 +02:00
import Directive -> plugin (#3363) 2019-10-08 10:20:48 +01:00
k8s_external Update k8s.io/[api|apimachinery|client-go] to v0.18.0 (#3796) 2020-03-30 11:10:41 -07:00
kubernetes plugin/kubernetes: Mention remote IP requirement for autopath and metadata in README (#3876) 2020-05-06 09:07:14 -07:00
loadbalance Move to CODEOWNERS (#3489) 2019-11-29 13:17:05 +00:00
log docs: update README and log plugin (#3602) 2020-01-17 16:16:29 +01:00
loop Move to CODEOWNERS (#3489) 2019-11-29 13:17:05 +00:00
metadata Move to CODEOWNERS (#3489) 2019-11-29 13:17:05 +00:00
metrics Cleanup metrics (#3776) 2020-03-26 09:17:33 +01:00
nsid Fix NSID not being set on cached responses (#3822) 2020-04-27 08:49:56 -07:00
pkg parse.HostPortorFile: return error when 0 found (#3742) 2020-03-13 14:23:10 +01:00
pprof redirect handler for pprof index (#3503) 2019-12-06 19:04:49 +00:00
ready gofmt -w -s **/*.go (#3603) 2020-01-17 10:47:45 -05:00
reload introduce metric naming test (#3789) 2020-03-31 08:07:36 +02:00
rewrite presubmit: test README.md sections (#3644) 2020-01-31 11:37:24 +00:00
root Move to CODEOWNERS (#3489) 2019-11-29 13:17:05 +00:00
route53 Fix query for SOA record for delegated zone (#3875) 2020-05-11 07:51:02 -07:00
secondary presubmit: test README.md sections (#3644) 2020-01-31 11:37:24 +00:00
sign sign: add expiration jitter (#3588) 2020-01-12 04:56:57 -08:00
template introduce metric naming test (#3789) 2020-03-31 08:07:36 +02:00
test presubmit: check import path ordering (#3636) 2020-01-30 09:19:26 +00:00
tls doc: fix generated manual pages (#3571) 2019-12-29 13:35:17 +01:00
trace presubmit: check import path ordering (#3636) 2020-01-30 09:19:26 +00:00
transfer not implemented yet (#3851) 2020-04-24 05:50:29 +00:00
whoami Move to CODEOWNERS (#3489) 2019-11-29 13:17:05 +00:00
backend.go Remove context.Context from request.Request (#2726) 2019-03-26 14:37:30 +00:00
backend_lookup.go Resolve TXT records via CNAME (#3557) 2020-01-03 14:16:04 +01:00
done.go go report card fixes (#3182) 2019-08-24 18:14:25 +00:00
log_test.go Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
normalize.go add MustNormalize (#3385) 2019-10-19 08:08:14 +01:00
normalize_test.go add MustNormalize (#3385) 2019-10-19 08:08:14 +01:00
plugin.go typo fixes (#3169) 2019-08-21 16:08:55 -04:00
register.go all: simply registering plugins (#3287) 2019-09-20 08:02:30 +01:00