Skip to content

Conversation

@prauscher
Copy link
Contributor

Suppose your provider uses RFC 2317 (or RFC 4183 for that matter). The output of nslookup could look like the following:

2.120.22.172.in-addr.arpa	canonical name = 2.0/26.120.22.172.in-addr.arpa.
2.0/26.120.22.172.in-addr.arpa	name = rajesh.intern.prauscher.de.

Without this filter, check_dns would check the string against "2.0/26.120.22.172.in-addr.arpa., rajesh.intern.prauscher.de." which will fail for obvious reasons.
In forward DNS, this is achieved in line 165, as nslookup will print the address separate from the CNAME-resolving.

Suppose your provider uses RFC 2317 (or RFC 4183 for that matter). The output of nslookup could look like the following:
2.120.22.172.in-addr.arpa	canonical name = 2.0/26.120.22.172.in-addr.arpa.
2.0/26.120.22.172.in-addr.arpa	name = rajesh.intern.prauscher.de.
Without this filter, check_dns would check the string against "2.0/26.120.22.172.in-addr.arpa., rajesh.intern.prauscher.de." which will fail for obvious reasons.
In forward DNS, this is achieved in line 165, as nslookup will print the address separate from the CNAME-resolving.
@prauscher
Copy link
Contributor Author

Looks like the CI-Check failed, but this is attributed to clang C at check_ping, which i did not change - probably this is just a glitch?
https://travis-ci.org/monitoring-plugins/monitoring-plugins/jobs/190322786

@waja waja changed the title ignore CNAMEs in RDNS-mode check_dns: ignore CNAMEs in RDNS-mode Jan 10, 2017
@waja waja added this to the 2.4 milestone Dec 15, 2020
@waja
Copy link
Member

waja commented Sep 19, 2023

I know, I'm very late ... but a test for this would be very welcome.

@waja waja modified the milestones: 2.4, 2.3.6 Oct 18, 2023
@waja waja modified the milestones: 2.3.6, 2.4.1 Jul 23, 2024
RincewindsHat added a commit to RincewindsHat/monitoring-plugins that referenced this pull request Mar 9, 2025
Suppose your provider uses RFC 2317 (or RFC 4183 for that matter). The output of nslookup could look like the following:
2.120.22.172.in-addr.arpa	canonical name = 2.0/26.120.22.172.in-addr.arpa.
2.0/26.120.22.172.in-addr.arpa	name = rajesh.intern.prauscher.de.
Without this filter, check_dns would check the string against "2.0/26.120.22.172.in-addr.arpa., rajesh.intern.prauscher.de." which will fail for obvious reasons.
In forward DNS, this is achieved in line 165, as nslookup will print the address separate from the CNAME-resolving.

Original commit by Patrick Rauscher ([email protected]), adapted
here.
@RincewindsHat
Copy link
Member

This functionality was integrated via #2078. Thanks a lot for the suggestion :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants