Discussion:
[Dnsmasq-discuss] Partial IP addresses in ptr-record fields
Juho Pohjala
2018-03-19 13:13:05 UTC
Permalink
Hi

Is it possible to configure partial IP addresses in ptr-record fields so
that it would work similarly as in server field?

In my configuration file I have
server=/3.168.192.in-addr.arpa/10.1.2.3
ptr-record=4.168.192.in-addr.arpa,5.5.5.5

Now, nslookup 192.168.3.100 gets forwarded to 10.1.2.3, this is expected.
But nslookup 192.168.4.100 will not return 5.5.5.5 as I would expect. Is my
configuration flawed or does dnsmasq support partial IPs in ptr-record
field at all?

Thanks
Juho Pohjala
Petr Menšík
2018-03-21 10:47:19 UTC
Permalink
Why would you like ptr record to look like an IP address in the first
place? I think this is more spoofing that anything else. You can always
make sure name 5.5.5.5.in-addr.arpa does not exist and will always
display as IP address. NAT can be used to change IP address transparently.
Post by Juho Pohjala
Hi
Is it possible to configure partial IP addresses in ptr-record fields so
that it would work similarly as in server field?
In my configuration file I have
server=/3.168.192.in-addr.arpa/10.1.2.3 <http://10.1.2.3>
ptr-record=4.168.192.in-addr.arpa,5.5.5.5
Now, nslookup 192.168.3.100 gets forwarded to 10.1.2.3, this is
expected. But nslookup 192.168.4.100 will not return 5.5.5.5 as I would
expect. Is my configuration flawed or does dnsmasq support partial IPs
in ptr-record field at all?
Thanks 
Juho Pohjala 
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
--
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
email: ***@redhat.com PGP: 65C6C973
Loading...