Closed mxmartins closed 3 years ago
Yes, there is misconfiguration, but it is in the cdc.gov
zone.
https://dnsviz.net/d/www.cdc.gov/YC7hBQ/dnssec/
https://lists.dns-oarc.net/pipermail/dns-operations/2020-December/020779.html
https://gitlab.nic.cz/knot/knot-resolver/-/issues/662#note_188577
I have found that setting qname-minimisation: no
in the Unbound configuration makes it more likely to resolve www.cdc.gov
successfully but the problem lies in the cdc.gov
nameservers.
The cdc.gov
nameservers publish:
www.cdc.gov
to www.akam.cdc.gov
.; <<>> DiG 9.16.12-Debian <<>> +dnssec +norec @ns1.cdc.gov www.cdc.gov
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39120
;; flags: qr aa; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 4096
;; QUESTION SECTION:
;www.cdc.gov. IN A
;; ANSWER SECTION:
www.cdc.gov. 300 IN CNAME www.akam.cdc.gov.
www.cdc.gov. 300 IN RRSIG CNAME 7 3 300 20210226133457 20210216132957 42473 cdc.gov. n1VRoI84Zp5l+GHq7t24N7Pau6fBPG6YZ71WixTpeCSsp0EM28t8EiL4 2UQJPutO2k7WkZV8etYsEp5p6FzQ0RUOPQfljzaLYv9e4AyLWfEfHiof ZVTy6aT4gJLxiYG8W9JuhCE8JX4ldeqM7FKkvxZL2yt7rVKzJ3GK+CG2 c64=
www.akam.cdc.gov. 3600 IN CNAME www.cdc.gov.edgekey.net.
;; Query time: 4 msec
;; SERVER: 198.246.96.61#53(198.246.96.61)
;; WHEN: Sat Feb 20 13:44:13 EST 2021
;; MSG SIZE rcvd: 267
akam.cdc.gov
.; <<>> DiG 9.16.12-Debian <<>> +dnssec +norec @ns1.cdc.gov akam.cdc.gov
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37047
;; flags: qr aa; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 4096
;; QUESTION SECTION:
;akam.cdc.gov. IN A
;; AUTHORITY SECTION:
akam.cdc.gov. 3600 IN SOA a1-43.akam.net. adhelpdsk.cdc.gov. 618054256 300 180 1209600 3600
;; Query time: 4 msec
;; SERVER: 198.246.96.61#53(198.246.96.61)
;; WHEN: Sat Feb 20 13:54:31 EST 2021
;; MSG SIZE rcvd: 101
akam.cdc.gov
. However, the DS and RRSIG(DS) RRsets are not included in the response to a type NS query.; <<>> DiG 9.16.12-Debian <<>> +dnssec +norec @ns1.cdc.gov akam.cdc.gov -t NS
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52419
;; flags: qr aa; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 4096
;; QUESTION SECTION:
;akam.cdc.gov. IN NS
;; ANSWER SECTION:
akam.cdc.gov. 86400 IN NS a9-64.akam.net.
akam.cdc.gov. 86400 IN NS a28-65.akam.net.
akam.cdc.gov. 86400 IN NS a1-43.akam.net.
akam.cdc.gov. 86400 IN NS a8-67.akam.net.
akam.cdc.gov. 86400 IN NS a2-64.akam.net.
akam.cdc.gov. 86400 IN NS a5-66.akam.net.
;; Query time: 4 msec
;; SERVER: 198.246.96.61#53(198.246.96.61)
;; WHEN: Sat Feb 20 13:44:37 EST 2021
;; MSG SIZE rcvd: 170
; <<>> DiG 9.16.12-Debian <<>> +dnssec +norec @ns1.cdc.gov akam.cdc.gov -t DS
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37596
;; flags: qr aa; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 4096
;; QUESTION SECTION:
;akam.cdc.gov. IN DS
;; ANSWER SECTION:
akam.cdc.gov. 3600 IN DS 4524 10 2 0314BA0480947FEB958DBA3AD3447CFA4906F9187EA6C4D882AE692D BBF582AA
akam.cdc.gov. 3600 IN RRSIG DS 7 3 3600 20210226133457 20210216132957 42473 cdc.gov. dcBL5Kei4G9UxqHjPHzj2VpzqriXTOPxI4vOwvdepFSHYisb1Sj8RE9l 6E8Xyu+aznJXoYWjfhUC1PHOy/9P03WnwndrDED8H1fAIPl+mHuoQBxe /tteoG5UI3dt1nyfywr0nDbGxJCuFqZtcjZQDbPksTjGceRuA/KCxlm7 7QY=
;; Query time: 8 msec
;; SERVER: 198.246.96.61#53(198.246.96.61)
;; WHEN: Sat Feb 20 13:44:40 EST 2021
;; MSG SIZE rcvd: 256
www.akam.cdc.gov
to www.cdc.gov.edgekey.net
. It is inconsistent for the cdc.gov
nameservers to publish answer section records for www.akam.cdc.gov
given that akam.cdc.gov
is a delegation point and akam.cdc.gov
is served by a completely different set of nameservers.; <<>> DiG 9.16.12-Debian <<>> +dnssec +norec @ns1.cdc.gov www.akam.cdc.gov
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2625
;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 4096
;; QUESTION SECTION:
;www.akam.cdc.gov. IN A
;; ANSWER SECTION:
www.akam.cdc.gov. 3600 IN CNAME www.cdc.gov.edgekey.net.
;; Query time: 4 msec
;; SERVER: 198.246.96.61#53(198.246.96.61)
;; WHEN: Sat Feb 20 13:44:44 EST 2021
;; MSG SIZE rcvd: 82
Some resolvers are able to find a working resolution path due to the inclusion of the Verizon nameservers auth00.ns.uu.net
and auth100.ns.uu.net
in the NS RRset for cdc.gov
published by the gov
nameservers, but the Verizon nameservers are not included in the NS RRset at the apex of the cdc.gov
zone. The Verizon nameservers correctly publish the signed delegation of akam.cdc.gov
:
; <<>> DiG 9.16.12-Debian <<>> +norec +dnssec @a.gov-servers.net cdc.gov
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29105
;; flags: qr; QUERY: 1, ANSWER: 0, AUTHORITY: 8, ADDITIONAL: 4
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 4096
; NSID: 6e 6e 6e 31 2d 6d 69 61 34 ("nnn1-mia4")
;; QUESTION SECTION:
;cdc.gov. IN A
;; AUTHORITY SECTION:
cdc.gov. 86400 IN NS ns2.cdc.gov.
cdc.gov. 86400 IN NS auth00.ns.uu.net.
cdc.gov. 86400 IN NS ns1.cdc.gov.
cdc.gov. 86400 IN NS ns3.cdc.gov.
cdc.gov. 86400 IN NS auth100.ns.uu.net.
cdc.gov. 3600 IN DS 65139 7 1 7286F5FD253E710BAB8CEDA4E3BA2231BA64D8E6
cdc.gov. 3600 IN DS 65139 7 2 3541905D7C11575AB8999048B4399BB11DDA85AA2EC34A796C3DD26C F3A6FD1E
cdc.gov. 3600 IN RRSIG DS 8 2 3600 20210227171009 20210220171009 27306 gov. lJgQuUHTCHnoghHqm5HYAzfuRuE5okBm/LcqGsZQLp2jOlcucwaU60Ey 8RZS+hsCXYVxhzTSJ/cbQVVWa0QJJvi6bVKt2Zpjl2CjCy5s6sdn8f9u /fUhPWFkvw1pMfKpN2K3+A6gAOx0lXkpPej4lCjEa+UiUgZ7XM4aLbl2 6Kcdox8SxwxTnsBERLEQJ4iJkuCq8mlXoUreh5/tfu3GyQ==
;; ADDITIONAL SECTION:
ns2.cdc.gov. 86400 IN A 198.246.96.92
ns1.cdc.gov. 86400 IN A 198.246.96.61
ns3.cdc.gov. 86400 IN A 198.246.125.10
;; Query time: 16 msec
;; SERVER: 2001:500:4431::2:30#53(2001:500:4431::2:30)
;; WHEN: Sat Feb 20 13:57:02 EST 2021
;; MSG SIZE rcvd: 482
; <<>> DiG 9.16.12-Debian <<>> +norec +dnssec @auth00.ns.uu.net. akam.cdc.gov
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31753
;; flags: qr; QUERY: 1, ANSWER: 0, AUTHORITY: 8, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 4096
; NSID: 56 65 72 69 7a 6f 6e ("Verizon")
;; QUESTION SECTION:
;akam.cdc.gov. IN A
;; AUTHORITY SECTION:
akam.cdc.gov. 86400 IN NS a5-66.akam.net.
akam.cdc.gov. 86400 IN NS a28-65.akam.net.
akam.cdc.gov. 86400 IN NS a1-43.akam.net.
akam.cdc.gov. 86400 IN NS a9-64.akam.net.
akam.cdc.gov. 86400 IN NS a8-67.akam.net.
akam.cdc.gov. 86400 IN NS a2-64.akam.net.
akam.cdc.gov. 3600 IN DS 4524 10 2 0314BA0480947FEB958DBA3AD3447CFA4906F9187EA6C4D882AE692D BBF582AA
akam.cdc.gov. 3600 IN RRSIG DS 7 3 3600 20210226133457 20210216132957 42473 cdc.gov. dcBL5Kei4G9UxqHjPHzj2VpzqriXTOPxI4vOwvdepFSHYisb1Sj8RE9l 6E8Xyu+aznJXoYWjfhUC1PHOy/9P03WnwndrDED8H1fAIPl+mHuoQBxe /tteoG5UI3dt1nyfywr0nDbGxJCuFqZtcjZQDbPksTjGceRuA/KCxlm7 7QY=
;; Query time: 8 msec
;; SERVER: 198.6.1.65#53(198.6.1.65)
;; WHEN: Sat Feb 20 13:57:11 EST 2021
;; MSG SIZE rcvd: 396
Understood. Thank you for looking into the issue and explaining it. I will try to bring it to the attention of those in charge of the cdc.gov domain. I'll go ahead and close this issue.
I'm using Unbound 1.13.1 with DNSSEC enabled, and using CloudFlare DNS servers. I am not able to resolve www.cdc.gov It fails because Missing DNSKEY RRset in response to DNSKEY query
When I dig +dnssec www..cdc.gov `C:\Users\M>dig +dnssec www.cdc.gov
; <<>> DiG 9.16.8 <<>> +dnssec www.cdc.gov ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 9269 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags: do; udp: 4096 ;; QUESTION SECTION: ;www.cdc.gov. IN A
;; Query time: 0 msec ;; SERVER: 192.168.10.253#53(192.168.10.253) ;; WHEN: Fri Feb 19 15:37:32 Mountain Standard Time 2021 ;; MSG SIZE rcvd: 40`
Looking at the Unbound log, I see this: ` Feb 19 15:38:33 unbound[550:2] info: resolving www.cdc.gov. A IN
Feb 19 15:38:33 unbound[550:2] info: response for www.cdc.gov. A IN Feb 19 15:38:33 unbound[550:2] info: reply from <.> 2606:4700:4700::1111#853 Feb 19 15:38:33 unbound[550:2] info: query response was CNAME Feb 19 15:38:33 unbound[550:2] info: resolving www.cdc.gov. A IN Feb 19 15:38:33 unbound[550:2] info: response for www.cdc.gov. A IN Feb 19 15:38:33 unbound[550:2] info: reply from <.> 2606:4700:4700::1111#853 Feb 19 15:38:33 unbound[550:2] info: query response was ANSWER Feb 19 15:38:33 unbound[550:2] info: validate(cname): sec_status_secure Feb 19 15:38:33 unbound[550:2] info: resolving akam.cdc.gov. DS IN Feb 19 15:38:33 unbound[550:2] info: validated DS akam.cdc.gov. DS IN Feb 19 15:38:33 unbound[550:2] info: resolving akam.cdc.gov. DNSKEY IN Feb 19 15:38:33 unbound[550:2] info: Missing DNSKEY RRset in response to DNSKEY query. Feb 19 15:38:33 unbound[550:2] info: resolving akam.cdc.gov. DNSKEY IN Feb 19 15:38:34 unbound[550:2] info: response for akam.cdc.gov. DNSKEY IN Feb 19 15:38:34 unbound[550:2] info: reply from <.> 2606:4700:4700::1111#853 Feb 19 15:38:34 unbound[550:2] info: query response was nodata ANSWER Feb 19 15:38:34 unbound[550:2] info: Missing DNSKEY RRset in response to DNSKEY query. Feb 19 15:38:34 unbound[550:2] info: resolving akam.cdc.gov. DNSKEY IN Feb 19 15:38:35 unbound[550:2] info: response for akam.cdc.gov. DNSKEY IN Feb 19 15:38:35 unbound[550:2] info: reply from <.> 2606:4700:4700::1001#853 Feb 19 15:38:35 unbound[550:2] info: query response was nodata ANSWER Feb 19 15:38:35 unbound[550:2] info: Missing DNSKEY RRset in response to DNSKEY query. Feb 19 15:38:35 unbound[550:2] info: resolving akam.cdc.gov. DNSKEY IN Feb 19 15:38:36 unbound[550:2] info: response for akam.cdc.gov. DNSKEY IN Feb 19 15:38:36 unbound[550:2] info: reply from <.> 1.0.0.1#853 Feb 19 15:38:36 unbound[550:2] info: query response was nodata ANSWER Feb 19 15:38:36 unbound[550:2] info: Missing DNSKEY RRset in response to DNSKEY query. Feb 19 15:38:36 unbound[550:2] info: resolving akam.cdc.gov. DNSKEY IN Feb 19 15:38:37 unbound[550:2] info: response for akam.cdc.gov. DNSKEY IN Feb 19 15:38:37 unbound[550:2] info: reply from <.> 1.1.1.1#853 Feb 19 15:38:37 unbound[550:2] info: query response was nodata ANSWER Feb 19 15:38:37 unbound[550:2] info: Missing DNSKEY RRset in response to DNSKEY query. Feb 19 15:38:37 unbound[550:2] info: resolving akam.cdc.gov. DNSKEY IN Feb 19 15:38:37 unbound[550:2] info: response for akam.cdc.gov. DNSKEY IN Feb 19 15:38:37 unbound[550:2] info: reply from <.> 2606:4700:4700::1111#853 Feb 19 15:38:37 unbound[550:2] info: query response was nodata ANSWER Feb 19 15:38:37 unbound[550:2] info: Missing DNSKEY RRset in response to DNSKEY query. Feb 19 15:38:37 unbound[550:2] info: Could not establish a chain of trust to keys for akam.cdc.gov. DNSKEY IN`
If I dig +dnssec @1.1.1.1 www.cdc.gov, the answer appears to be correct... same answer from 1.0.0.1 `C:\Users\M>dig +dnssec @1.1.1.1 www.cdc.gov
; <<>> DiG 9.16.8 <<>> +dnssec @1.1.1.1 www.cdc.gov ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2019 ;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags: do; udp: 1232 ;; QUESTION SECTION: ;www.cdc.gov. IN A
;; ANSWER SECTION: www.cdc.gov. 249 IN CNAME www.akam.cdc.gov. www.cdc.gov. 249 IN RRSIG CNAME 7 3 300 20210226133457 20210216132957 42473 cdc.gov. n1VRoI84Zp5l+GHq7t24N7Pau6fBPG6YZ71WixTpeCSsp0EM28t8EiL4 2UQJPutO2k7WkZV8etYsEp5p6FzQ0RUOPQfljzaLYv9e4AyLWfEfHiof ZVTy6aT4gJLxiYG8W9JuhCE8JX4ldeqM7FKkvxZL2yt7rVKzJ3GK+CG2 c64= www.akam.cdc.gov. 20 IN A 23.50.33.231 www.akam.cdc.gov. 20 IN RRSIG A 10 4 20 20210222195731 20210219185731 3212 akam.cdc.gov. F4r4mpaCu4cbQC+aj35Cr5NSCB2stgHFpdJvBK/JtQLwUtE86f7CqGtF QMGYLeDsYB0Ne2ay+MY/QUEn8SJ5Z+A+AM3py4CDjyoMCtMg8vbnyKYz /Pz34UXetwPyxhwenRg0SeHeQPyCsBH3jUYG25r6fNi0zs9BdyxKjaDc +iw=
;; Query time: 95 msec ;; SERVER: 1.1.1.1#53(1.1.1.1) ;; WHEN: Fri Feb 19 15:37:08 Mountain Standard Time 2021 ;; MSG SIZE rcvd: 418 ` So, it appears Unbound is not handling DNSSEC properly, or I have something misconfigured. But I have not changed my settings and they were working properly. What am I missing?
Here's my config: `# server: ###########################################################################
BASIC SETTINGS
remote-control: control-enable: no
`