Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address03 does not follow out-of-zone aliases (CNAME) #1431

Open
marc-vanderwal opened this issue Feb 24, 2025 · 0 comments · May be fixed by #1432
Open

Address03 does not follow out-of-zone aliases (CNAME) #1431

marc-vanderwal opened this issue Feb 24, 2025 · 0 comments · May be fixed by #1432
Assignees
Labels
T-Bug Type: Bug in software or error in test case description V-Patch Versioning: The change gives an update of patch in version.
Milestone

Comments

@marc-vanderwal
Copy link
Contributor

This issue is related to zonemaster/zonemaster#1353.

When a reverse lookup for an IP address is attempted and the initial PTR query leads to a CNAME whose target is in another zone, Address03 incorrectly reports that the affected name server’s IP has no reverse DNS.

This can be seen in the wild when attempting to test le-fay.org (see below). The second line (with the WARNING) is incorrect, and should have been similar to the first one:

$ zonemaster-cli --test address03 le-fay.org

Seconds Level    Message
======= ======== =======
   2.82 NOTICE   Nameserver ns-auth-1.svc.inet.le-fay.org has an IP address (2001:8b0:aab5:4::9) with mismatched PTR result (fuchsia.eden.le-fay.org.).
   3.28 WARNING  Nameserver ns-auth-1.svc.inet.le-fay.org has an IP address (81.187.47.195) without PTR configured.
   3.53 NOTICE   Nameserver ns-auth-2.svc.inet.le-fay.org has an IP address (2001:ba8:4015:100::2) with mismatched PTR result (amaranth.eden.le-fay.org.).
   3.80 NOTICE   Nameserver ns-auth-3.svc.inet.le-fay.org has an IP address (176.126.243.79) with mismatched PTR result (yarrow.eden.le-fay.org.).
   4.00 NOTICE   Nameserver ns-auth-3.svc.inet.le-fay.org has an IP address (2a00:1098:6b:100::2) with mismatched PTR result (yarrow.eden.le-fay.org.).

That is because there is a classless in-addr.arpa delegation going on:

$ dig +nocmd +nostats +nord @auth.primary-dns.co.uk. PTR 195.47.187.81.in-addr.arpa.
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40019
;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65000
;; QUESTION SECTION:
;195.47.187.81.in-addr.arpa.    IN      PTR

;; ANSWER SECTION:
195.47.187.81.in-addr.arpa. 3600 IN     CNAME   195.192-207.47.187.81.in-addr.arpa.

;; AUTHORITY SECTION:
192-207.47.187.81.in-addr.arpa. 3600 IN NS      ns-auth-1.svc.inet.le-fay.org.
192-207.47.187.81.in-addr.arpa. 3600 IN NS      ns-auth-2.svc.inet.le-fay.org.
192-207.47.187.81.in-addr.arpa. 3600 IN NS      ns-auth-3.svc.inet.le-fay.org.

The CNAME target points to another zone, which is outside the authority of auth.primary-dns.co.uk. Following up, we get this:

$ dig +nocmd +nostats +nord @ns-auth-1.svc.inet.le-fay.org PTR 195.192-207.47.187.81.in-addr.arpa.
;; BADCOOKIE, retrying.
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 24205
;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: 59947e3d059cf23c0100000067bc72ac0e77dcf2ec4a43b2 (good)
;; QUESTION SECTION:
;195.192-207.47.187.81.in-addr.arpa. IN PTR

;; ANSWER SECTION:
195.192-207.47.187.81.in-addr.arpa. 3600 IN PTR fuchsia.eden.le-fay.org.
@marc-vanderwal marc-vanderwal added T-Bug Type: Bug in software or error in test case description V-Patch Versioning: The change gives an update of patch in version. labels Feb 24, 2025
@marc-vanderwal marc-vanderwal added this to the v2025.1 milestone Feb 24, 2025
@marc-vanderwal marc-vanderwal self-assigned this Feb 24, 2025
@marc-vanderwal marc-vanderwal linked a pull request Feb 24, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Bug Type: Bug in software or error in test case description V-Patch Versioning: The change gives an update of patch in version.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant