Post by Guy WijnantsIs there a way to enable reverse lookup for a certain type of
network in dnsmasq? Like requests comming from 192.168.0.0/24 and
and disable reverse lookup for the rest?
$Subject notwithstanding, note that the OP in this thread was not
really asking about REVERSE lookup; it was about disabling RECURSIVE
queries.
Nevertheless we can't gripe at you for thread hijacking when your
question actually brings the thread in line with its Subject. :)
I can't speak authoritatively (pardon the pun) on this, but I am
pretty sure you'd need a feature like BIND's view feature for this;
dnsmasq is about simple configuration and commonly-used features.
Most sites don't need views (and many who do set up views have
overcomplicated things. ;) )
In BIND you'd have one view which is authoritative for all of the
in-addr.arpa zone:
...
view "no-reverse" {
match-clients { 192.168.0.0/24; };
...
zone "in-addr.arpa" IN {
type master;
file "in-addr.arpa";
};
};
view "default" {
match-clients { "any"; };
...
};
...
...where the "in-addr.arpa" zone file has only SOA and NS with no
other records such as PTR.
--
http://rob0.nodns4.us/
Offlist GMX mail is seen only if "/dev/rob0" is in the Subject: