LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-10-2009, 01:21 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
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?
 
Old 12-10-2009, 01:54 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
Quote:
Originally Posted by your_shadow03 View Post
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

Last edited by catkin; 12-10-2009 at 01:54 AM. Reason: Corrected 103 to 100
 
Old 12-10-2009, 02:36 AM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
Can you provide me some good tutorial how to setup the same?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
the reverse lookup query failed in the connected devices and work in the DNS itself another 1 Linux - Newbie 1 04-09-2009 02:44 PM
reverse DNS query - PTR 91change Linux - Networking 3 10-05-2008 03:28 AM
BIND: Reverse query not working imanassypov Linux - Networking 0 06-21-2007 12:30 PM
Web based reverse DNS query tools? elfoozo Linux - Networking 2 02-16-2007 06:21 PM
query regarding ethernet frame support amitchandel Linux - Networking 0 01-17-2005 01:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration