LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Does dnsmasq support reverse query? (https://www.linuxquestions.org/questions/linux-newbie-8/does-dnsmasq-support-reverse-query-774660/)

your_shadow03 12-10-2009 01:21 AM

Does dnsmasq support reverse query?
 
I am looking for a lightweight DNS server and came up with dyndns and dnsmasq? I need both the forward and reverse DNS query?
Anyone who can recommend?

catkin 12-10-2009 01:54 AM

Quote:

Originally Posted by your_shadow03 (Post 3786281)
I am looking for a lightweight DNS server and came up with dyndns and dnsmasq? I need both the forward and reverse DNS query?
Anyone who can recommend?

dnsmasq does reverse lookups.

With dnsmaq logging turned on in dnsmasq.conf
Code:

c:/var/log$ nslookup 64.233.181.103
Server:        127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
103.181.233.64.in-addr.arpa    name = ni-in-f103.1e100.net.

Authoritative answers can be found from:
181.233.64.in-addr.arpa nameserver = ns2.google.com.
181.233.64.in-addr.arpa nameserver = ns3.google.com.
181.233.64.in-addr.arpa nameserver = ns4.google.com.
181.233.64.in-addr.arpa nameserver = ns1.google.com.
ns1.google.com  internet address = 216.239.32.10
ns2.google.com  internet address = 216.239.34.10
ns3.google.com  internet address = 216.239.36.10
ns4.google.com  internet address = 216.239.38.10

From /var/log/debug
Code:

Dec 10 13:15:04 CW8 dnsmasq[6682]: query[PTR] 103.181.233.64.in-addr.arpa from 127.0.0.1
Dec 10 13:15:04 CW8 dnsmasq[6682]: forwarded 103.181.233.64.in-addr.arpa to 61.1.96.69
Dec 10 13:15:04 CW8 dnsmasq[6682]: forwarded 103.181.233.64.in-addr.arpa to 61.1.96.71
Dec 10 13:15:04 CW8 dnsmasq[6682]: forwarded 103.181.233.64.in-addr.arpa to 61.1.96.72
Dec 10 13:15:04 CW8 dnsmasq[6682]: forwarded 103.181.233.64.in-addr.arpa to 218.248.240.23
Dec 10 13:15:04 CW8 dnsmasq[6682]: forwarded 103.181.233.64.in-addr.arpa to 218.248.240.135
Dec 10 13:15:04 CW8 dnsmasq[6682]: forwarded 103.181.233.64.in-addr.arpa to 218.248.240.180
Dec 10 13:15:04 CW8 dnsmasq[6682]: forwarded 103.181.233.64.in-addr.arpa to 218.248.240.181
Dec 10 13:15:04 CW8 dnsmasq[6682]: forwarded 103.181.233.64.in-addr.arpa to 218.248.240.208
Dec 10 13:15:04 CW8 dnsmasq[6682]: forwarded 103.181.233.64.in-addr.arpa to 218.248.255.139
Dec 10 13:15:04 CW8 dnsmasq[6682]: forwarded 103.181.233.64.in-addr.arpa to 218.248.255.145
Dec 10 13:15:04 CW8 dnsmasq[6682]: forwarded 103.181.233.64.in-addr.arpa to 218.248.255.146
Dec 10 13:15:04 CW8 dnsmasq[6682]: reply 64.233.181.103 is ni-in-f103.1e100.net

dnsmasq was only only using so many DNS servers because it had just been restarted (with logging configured) so it was using all its known servers to see which was currently fastest. Doing a reverse lookup on 64.233.181.100 immediately afterwards produced only
Code:

Dec 10 13:20:07 CW8 dnsmasq[6682]: query[PTR] 100.181.233.64.in-addr.arpa from 127.0.0.1
Dec 10 13:20:07 CW8 dnsmasq[6682]: forwarded 100.181.233.64.in-addr.arpa to 61.1.96.69
Dec 10 13:20:07 CW8 dnsmasq[6682]: reply 64.233.181.100 is ni-in-f100.1e100.ne


your_shadow03 12-10-2009 02:36 AM

Can you provide me some good tutorial how to setup the same?


All times are GMT -5. The time now is 02:43 PM.