Few days ago we noticed some of our outging emails being delayed due to remote mailservers unable to resolve our IP (for example Client host rejected: cannot find your hostname, [92.240.244.176]
). We did not make any changes to our DNS recently and our ISP also says they did not touch it.
We have 92.240.244.128/25 delegated from their ns1/ns2.lightstorm.sk to our ns1/n2.mojhosting.sk (our ns1 is running BIND 9.10, ns2 is running PowerDNS 4.0).
They claim the fault is on our side because our DNS servers return REFUSED on this query host 92.240.244.202 ns1.mojhosting.sk
, but this must have been like this for a long time. Maybe it is because that command queries for 202.244.240.92.in-addr.arpa.
, which is only CNAME on our ISP DNS, but does not exist inside our delegated 128/25.244.240.92.in-addr.arpa.
sub-tree)? Running dig +trace
for both records seems to work for me every time.
MXtoolbox says: Warning: Received Non-Authoritative (lame) Answer from: 'ns1.lightstorm.sk', but I have no idea how to check it. Global DNS Propagation Checker shows our IP unresolvable from majority of locations.
Also our ISP has quite bad IPv6 connectivity and I see their ns1/ns2 having also IPv6 addresses, could this also add to the issue?
Your DNS configuration "works" somehow but it is not correct fully, hence can create problems for some cases.
Here is why.
If you query directly you do get a reply:
So we got the final
PTR
record and we should be happy.However, if we diagnose all the path from
.
(root) until176.244.240.92.in-addr.arpa.
we can see a problem.DNSViz at https://dnsviz.net/d/202.244.240.92.in-addr.arpa/YYzr-A/dnssec/ shows it, if you look at the Errors part:
You can see the same by using
dig +trace 202.244.240.92.in-addr.arpa. PTR +nottlunits +nodnssec
which gives the below (trimming the first steps at root and 2 domains):But the last answer has a problem, the flag "AA" (Authoritative Answer) is missing from it. This final nameserver (
ns1.lightstorm.sk
) is giving some data (theCNAME
record) but does not say it is authoritative on it, where it should.See this answer without the unneeded details:
Note the "flags" part, it should have an "AA" flag. Also the fact that it has "RA" (Recursion Available) seems to show that this nameserver is both authoritative and recursive which is most of the time a bad idea, both services should be separate.
A recursive nameserver will see that, and refuse to go further, hence the various errors you get. Owner of
ns1.lightstorm.sk.
+ns2
needs to fix its configuration, the problem is there and not elsewhere.If you want to compare, this is a similar setup, but working for IP
162.202.233.81
.Note how DNSViz does not show any error: https://dnsviz.net/d/81.233.202.162.in-addr.arpa/YY1_ag/dnssec/
and also if you redo the last step to compare with above:
Note how the "flags" part is different.
FWIW this kind of setup in the reverse tree is the one designed in RFC 2317 "Classless IN-ADDR.ARPA delegation", using
CNAME
to be able to subdelegate parts of the tree.