[Dnsmasq-discuss] dnsmasq: routing non /24 reverse in-addr.arpa requests
alessandro at bottonelli.it
Sun Aug 28 13:56:35 BST 2016
Il 2016-08-28 11:53 Albert ARIBAUD ha scritto:
> Hi Alessandro,
> Le Sun, 28 Aug 2016 11:33:02 +0200
> Alessandro Bottonelli <alessandro at bottonelli.it> a écrit:
> Here's the current /etc/dnsmasq.conf content (I added the line
> 1. # routing PTR queries to nameservers:
> 2. server=/50.150.10.in-addr.arpa/10.150.50.17
> 3. server=/51.150.10.in-addr.arpa/10.150.50.17
> 4. server=/52.150.10.in-addr.arpa/10.150.50.17
> 5. server=/53.150.10.in-addr.arpa/10.150.50.17
> 6. server=/54.150.10.in-addr.arpa/10.150.50.17
> 7. server=/156.240.10.in-addr.arpa/10.150.50.17
> 8. server=/157.240.10.in-addr.arpa/10.150.50.17
> 9. server=/158.240.10.in-addr.arpa/10.150.50.17
> 10. server=/129.240.10.in-addr.arpa/10.240.129.113
> 11. # anything else not defined above (strict-order is set)
> 11. server=/10.in-addr.arpa/10.159.59.41
> The issue is with line 7, actually 10.240.156.x IS NOT a /24 net. I
> tried different syntax forms, I searched, but could not find a way to
> tell dnsmasq about that.
> [10.240.156.x looks like a /24 (sub)net to me, what with three bytes
> of four being constant. Do you mean the third byte may be something
> else than 156? Or is x being restricted to less than whole 0..255
The latter you wrote. My line 7 is wrong I know, but I don't know how to
write it differently.
I can rev 10.240.156.6 by asking 10.150.50.17. But 10.240.156.101 is
reversed only by 10.159.59.41 (tried with dig -x 10.240.156.101
@10.159.59.41 and works fine).
And that's my issue, what's the syntax (if available) to tell dnsmasq to
ask for reverse for less than 0.255 range? Say ask 10.240.156.[0-63]
revs to 10.150.50.17 and ask 10.240.156.[64-255] revs to 10.159.59.41.
And/Or, as previously asked, is there a way to tell dnsmasq to ignore
NXDOMAIN coming from one server (say 10.150.50.17) and keep asking the
others (till the and of the server list)?
More information about the Dnsmasq-discuss