[Dnsmasq-discuss] Per domain Reverse DNS query configuration

salil GK gksalil at gmail.com
Thu Jul 9 01:30:08 BST 2020


Thanks for the response. I tried to configure dns configuration based
on IP range, but I failed to do so.

My understanding is that , we specify a network address range ( of
clients for which the reverse lookup need to be performed ) and for
that address range, IP address of DNS server will be put in config
file. Is this right ?

In the below scenario, could you please get me the configuration - how
it looks .

>>>
MyServer

Default DNS  ( s.com )
domainA DNS  ( a.com )

ServerD 1.2.3.4  ( s.com )
ServerA 10.20.30.40 ( a.com )
<<<

In the above case , I have configured ServerD in DefaultDNS and
ServerA in domainA.
So pick the right DNS server for 10.20.30.40, ( domainA )  How will
the configuration look like ?

So this is the requirement. I am not an expert in dns configuration
hence not sure if my question is a right one. But this is some thing
we need to achieve now.

Or is there any way we can configure dnsmasq for searching all
configured dns servers for resolving the name for the required IP
address. In case 10.20.30.40  is not getting resolved in Default DNS,
dnsmasq will query in next available dns server and go on until it
finishes all the available dns servers .

Thanks
~S


On Mon, 6 Jul 2020 at 23:10, Matus UHLAR - fantomas <uhlar at fantomas.sk> wrote:
>
> On 06.07.20 20:28, salil GK wrote:
> >Thanks for the response.
> >In my server we use LDAP with SASL. SASL will perform  reverse lookup
> >and make sure that from IP address we get the domain name back. How do
> >I handle this ?
>
> this is quite common, not specific to SASL. for each reverse range, you must
> know where to forward queries to.
>
> 10.0.0.0/8 is private IP space, your network admins shouls be able to give
> you IPs of DNS servers that can resolve reverse DNS.
>
> Maybe you get them using DHCP.
>
>
> >On Mon, 6 Jul 2020 at 16:00, Matus UHLAR - fantomas <uhlar at fantomas.sk> wrote:
> >>
> >> On 06.07.20 09:47, salil GK wrote:
> >> >   I am new to dnsmasq list. I have my server configured with domain
> >> >specific dns resolution for the following entry.
> >> >
> >> >>>>
> >> ># daemon version Dnsmasq version 2.81  Copyright (c) 2000-2020 Simon Kelley
> >> >
> >> >server=/hello.com/10.116.21.86
> >> ><<<<
> >> >
> >> >
> >> >This works perfectly.
> >> >
> >> >But I get query for reverse dns resolution - fetch record based on IP
> >> >address. So if an IP address comes for exfy.com comes, resolution
> >> >fails because the query goes to default dns server and fails if it
> >> >doesn't find an entry.
> >> >How do I configure reverse dns query per domain ?
> >>
> >> since reverse lookups are mapping the IP address to domain names, and are in
> >> form of 86.21.116.10.in-addr.arpa, you can configure
> >>
> >> server=/86.21.116.10.in-addr.arpa/10.116.21.86
>
> I think this should more likely be either one of:
> 21.116.10.in-addr.arpa
> 116.10.in-addr.arpa
> 10.in-addr.arpa
>
> >> but you can't configure revrese lookup per resolved domain name like
>
> ... reverse.
>
> >> "hello.com" above, because the domain name is not known at the time of
> >> lookup.
>
> --
> Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> We are but packets in the Internet of life (userfriendly.org)
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss



More information about the Dnsmasq-discuss mailing list