Solved

Reverse DNS query - PTR records ..

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

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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 wrote this article to explain some important DNS concepts that should be known to avoid some typical configuration errors I often see in forums. I assume that what is described here is the typical behavior of Microsoft DNS client. I don't know …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now