Solved

Reverse DNS query - PTR records ..

Posted on 2008-10-04
5
427 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

One of the most often confused topics in the area DNS is the idea of GLUE records. Specifically, what they are, when they are needed, when they are provided, and how they are created. First, WHAT IS GLUE? To understand GLUE, you must first under…
Resolve DNS query failed errors for Exchange
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

772 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