On 15/08/2019 14:19, Yangfl wrote: > Hi, > > I'm trying to setup my reverse DNS server which is sub-delegated from > the upstream by RFC 2317. However, I can not type any prefix len for > `--rev-server` other than 8, 16, 24, like > `--rev-server=192.0.2.0/25,192.0.2.1`, and I don't know how to make > the server reply PTR request for '1.0/25.2.0.192.in-addr.arpa'. > > I know I might just get a better DNS software instead, but I'm still > wondering if such can be achieved using only dnsmasq. Since I'm also > using dnsmasq for DHCP server and DHCP-configured hosts, it would be a > pain to switch to other DNS servers. >
There's no support in dnsmasq for this. Since rev-server is just syntactic sugar for the server command, you could do it the long way, but it's not pretty: ie. server=/0.2.0.192.in-addr.arpa/192.0.2.1 server=/1.2.0.192.in-addr.arpa/192.0.2.1 . . server=/7.2.0.192.in-addr.arpa/192.0.2.1 Simon. _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss