; <<>> DiG 9.18.18-0ubuntu2.1-Ubuntu <<>> @9.9.9.9 www.trendnet.com; (1 server found);; global options: +cmd;; Got answer:;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 11260;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1;; OPT PSEUDOSECTION:; EDNS: version: 0, flags:; udp: 1232;; QUESTION SECTION:;www.trendnet.com. IN A;; AUTHORITY SECTION:trendnet.com. 2257 IN SOA NS65.WORLDNIC.com. namehost.WORLDNIC.com. 123110920 10800 3600 604800 3600;; Query time: 15 msec;; SERVER: 9.9.9.9#53(9.9.9.9) (UDP);; WHEN: Sat Feb 17 09:41:11 EST 2024;; MSG SIZE rcvd: 104
;; resolution failed: ncache nxdomain; negative response, fully validated; www.trendnet.com. 2426 IN \-ANY ;-$NXDOMAIN; trendnet.com. SOA NS65.WORLDNIC.com. namehost.WORLDNIC.com. 123110920 10800 3600 604800 3600; trendnet.com. RRSIG SOA ...; trendnet.com. RRSIG NSEC ...; trendnet.com. NSEC trendnet.com. A NS SOA MX TXT RRSIG NSEC DNSKEY CAA
; <<>> DiG 9.18.18-0ubuntu2.1-Ubuntu <<>> @9.9.9.9 www.trendnet.com +tls; (1 server found);; global options: +cmd;; Got answer:;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64722;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1;; OPT PSEUDOSECTION:; EDNS: version: 0, flags:; udp: 1232;; QUESTION SECTION:;www.trendnet.com. IN A;; ANSWER SECTION:www.trendnet.com. 6704 IN A 38.122.20.251;; Query time: 35 msec;; SERVER: 9.9.9.9#853(9.9.9.9) (TLS);; WHEN: Sat Feb 17 09:42:22 EST 2024;; MSG SIZE rcvd: 61
HiI have experienced just about the exact same symptoms today - also with quad9.I'll look into it tomorrow and get back to you about my results...
I could be totally out of target but maybe will give something to at least discard.I remember vaguely that with quad9 there is a field they return for nxdomain responses to discern between non-existing domain and one that is blocked by their filters, or maybe was for another reason. I think it was authority 1 and 0.So, in both cases an nxdomain is returned to Unbound.
Perhaps an additional checkbox to disable aggressive-nsec (enabled by default) would be useful..https://unbound.docs.nlnetlabs.nl/en/latest/topics/privacy/aggressive-nsec.htmlhttps://github.com/NLnetLabs/unbound/issues/824
Quote from: cookiemonster on February 20, 2024, 03:19:58 pmI could be totally out of target but maybe will give something to at least discard.I remember vaguely that with quad9 there is a field they return for nxdomain responses to discern between non-existing domain and one that is blocked by their filters, or maybe was for another reason. I think it was authority 1 and 0.So, in both cases an nxdomain is returned to Unbound.Interesting. I'll have to take a look. Any recommendations for the best way to test for that?
yes, with dig. Found a link https://docs.quad9.net/FAQs/
dig @9.9.9.9 A www.trendnet.com +dnssec | grep status;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11539dig @149.112.112.112 A www.trendnet.com +dnssec | grep status;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24981dig @9.9.9.9 www.trendnet.com | grep "status\|AUTHORITY:";; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28429;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1dig @149.112.112.112 www.trendnet.com | grep "status\|AUTHORITY:";; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 38281;; flags: qr rd ra ad; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
hat's interesting, but I don't think that it's due to aggressive-nsec as trendnet.com was correctly resolving.
@CJQuotehat's interesting, but I don't think that it's due to aggressive-nsec as trendnet.com was correctly resolving. yep, trendnet.com was correctly resolving but it also returns the NSEC record that says that the next record is trendnet.com. so it actualy completing the chain. this is an error in the trendnet.com zone config that provokes NXDOMAIN for subdomains if aggressive-nsec is on
have you tried with aggressive-nsec no ?i think it should work like https://www.cloudflare.com/dns/dnssec/dnssec-complexities-and-considerations/so if you dig up the nsec record for trendnet.com it should return something other then trendnet.com for the next record (actual name or some white lie if zone owner is afraid of zone enumeration). likehttps://digwebinterface.com/?hostnames=%0D%0Acloudflare.com&type=NSEC&showcommand=on&ns=resolver&useresolver=9.9.9.9&nameservers=(returns \000.cloudflare.com. for the next record)but for trendnet.com it return:https://digwebinterface.com/?hostnames=trendnet.com&type=NSEC&showcommand=on&ns=resolver&useresolver=9.9.9.9&nameservers=(returns trendnet.com. for the next record)actualy saying that there is no records between trendnet.com and trendnet.comI think this is a zone config error