Page MenuHomePhabricator

DNSSec / wikidough issues on doh3006
Closed, ResolvedPublic

Description

There were multiple reports of broken dnssec in IRC (see #wikimedia-sre-private, #wikimedia-sre and #wikimedia-traffic).

It was reported the host dns3006 has issues. Also the is an active alert for wikidough since Oct 11th, 20:00 UTC :

JobUnavailable: Reduced availability for job wikidough in ops@esams

https://alerts.wikimedia.org/?q=%40state%3Dactive&q=%40cluster%3Dwikimedia.org&q=wikidough

@MoritzMuehlenhoff mentioned a Root Zone KSK Rollover happened yesterday which could be related to the issue.

Related Objects

Event Timeline

FYI: @ssingh depooled doh3006 on Oct 11 @ 20.12UTC

doh3005 seems ok fwiw

cathal@officepc:~$ dig +nsid +dnssec +https www.ietf.org @wikimedia-dns.org 

; <<>> DiG 9.20.29-1~deb13u1-Debian <<>> +nsid +dnssec +https www.ietf.org @wikimedia-dns.org
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14190
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 512
; NSID: 64 6f 68 33 30 30 35 ("doh3005")
;; QUESTION SECTION:
;www.ietf.org.			IN	A

;; ANSWER SECTION:
www.ietf.org.		145	IN	A	104.16.45.99
www.ietf.org.		145	IN	A	104.16.44.99
www.ietf.org.		145	IN	RRSIG	A 13 3 300 20261013102831 20261011082831 34505 ietf.org. Yh9dZBlaAAzOLBxsgCA4U9BHwYWBIKupBKRlgIj4MT8/vRjsNDV1HIAj OzyOci/54O7pP96QnP1SgyHJi37WSg==

;; Query time: 20 msec
;; SERVER: 2001:67c:930::1#443(wikimedia-dns.org) (HTTPS)
;; WHEN: Mon Oct 12 10:31:06 IST 2026
;; MSG SIZE  rcvd: 188

I'm not familiar with these systems so take this with a big grain of salt: it seems that pdns only knows about the old key (rec_control get-tas) and is not loading /etc/powerdns/recursor.lua, which eventually loads /usr/share/dns/root.key which contains both the old and the new key.

I'm not familiar with these systems so take this with a big grain of salt: it seems that pdns only knows about the old key (rec_control get-tas) and is not loading /etc/powerdns/recursor.lua, which eventually loads /usr/share/dns/root.key which contains both the old and the new key.

Thanks for the pointers! Indeed you are correct. And the problem exists on all our doh VMs that I can see, I expect the ones that are working (like doh3005) just happen to have the root zone cached locally and will break when the TTL expires.

The problem seems to be fixed by explicitly adding the instruction to load recursor.lua in /etc/powerdns/recursor.conf, after a restart it works:

cmooney@doh3006:~$ dig +nsid +dnssec www.ietf.org @127.0.0.1

; <<>> DiG 9.18.49-1~deb12u2-Debian <<>> +nsid +dnssec www.ietf.org @127.0.0.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51170
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags: do; udp: 512
; NSID: 64 6f 68 33 30 30 36 ("doh3006")
;; QUESTION SECTION:
;www.ietf.org.			IN	A

;; ANSWER SECTION:
www.ietf.org.		149	IN	A	104.16.44.99
www.ietf.org.		149	IN	A	104.16.45.99
www.ietf.org.		149	IN	RRSIG	A 13 3 300 20261013110132 20261011090132 34505 ietf.org. c4KomhLCLV9H0KiLcY5qKkUqsAIfkIKwW6o1KrieEptSISzJvbip4/as bIp4DrDJgtkXR5jw2rbeLt1roKNdIQ==

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1) (UDP)
;; WHEN: Mon Oct 12 10:04:03 UTC 2026
;; MSG SIZE  rcvd: 188

I'll make a puppet patch to add that line.

Change #1354396 had a related patch set uploaded (by Cathal Mooney; author: Cathal Mooney):

[operations/puppet@production] pdns-recursor: include lua-config-file path in recurosr.conf

https://gerrit.wikimedia.org/r/1354396

Change #1354396 merged by Cathal Mooney:

[operations/puppet@production] pdns-recursor: include lua-config-file path in recurosr.conf

https://gerrit.wikimedia.org/r/1354396

cmooney claimed this task.

Ok I think this should be sorted now. Root cause was that we were relying on the in-built trust anchors powerdns-recursor ships with, rather than those in /usr/share/dns/root.key with are managed by the dns-root-data package. So we had not loaded the new 38696 KSK. When the root zone began to be signed with that new key starting yesterday we were unable to validate the signatures, resulting in the SERVFAILs.

Tested on doh6002 and subsequently rolled out to all wikidough hosts.

https://phabricator.wikimedia.org/P96668