Solved

Reverse DNS query - PTR records ..

Posted on 2008-10-04
5
434 Views
Last Modified: 2013-12-16
My linux box has two interfaces eth0 and eth1  configured with 10.232.19.100 and 192.168.1.1 respectively .

But as soon as the box is restarted , the box send reverse dns query (PTR ) to  nameserver defined in /etc/resolv.conf file .
 1. why this reverse dns query is sent out ? Can i assign any name to these interfaces so that it wont query a PTR records .

i defined entries in /etc/hosts file  for eth0 and eth1 , and defined /etc/host.conf . But still it sends out reverse dns query .

2 . Why it is not picking entries from /etc/hosts file .
3 . There is a reverse dns query for 192.168.1.0 also . WHy it is so ?
0
Comment
Question by:91Change
  • 3
5 Comments
 

Author Comment

by:91Change
ID: 22640349
but if i add  
nameserver 127.0.0.1   then everything seems to work fine .How this is possible since   no dns server running on my linux box . But if i make changes in /etc/hosts file , it takes reboot to take effect .

Can you help with these problems ?
0
 
LVL 51

Assisted Solution

by:Keith Alabaster
Keith Alabaster earned 100 total points
ID: 22640400
You have a network defined as 192.168.1.0 by the nature of having a nic with the ip address of 192.168.1.1 - why would you NOT expect the server to try and contact the nameserver listed as responsible for the 192.168.1.0 network to check that there is a ptr record for 192.168.1.1?

0
 

Author Comment

by:91Change
ID: 22640848
There is no PTR for my address in nameserver . I dont have admin privilege in nameserver .

These dns reverse queries keep coming and really slowing down my connection . I can see it thru wireshark . So i need to resolve in my box itself by some means .
0
 

Author Comment

by:91Change
ID: 22640895
My reverse dns query  get resolved  in the box itself ? .....I would like to do this happen ..
0
 
LVL 40

Accepted Solution

by:
noci earned 150 total points
ID: 22673745
Reverse queries are mostly done because some software was asked to log a hostname into the logfiles. THen any address involved on your system will have it's name asked out.

You can't prevent them otherwise as NOT to log hostnames. (in whatever software is asked to do that).

Also if you have access restrictions in xinetd or others and have a name there the incoming address is looked up and compared to check for access.

If you don't want to use DNS, than you need to setup host files.
But configuring the named server to have PTR zones is not that difficult
so why not take that easy route.
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
I've written instructions for one router type, but this principle may be useful for others of the same brand and even other brands of router. Problem: I had an issue especially with mobile devices that refused to use DNS information supplied via…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question