Reverse Look-up Problem

If you define two A Records with the same IP address then when you come to define the Reverse Mapping (look-up) file you can only map a single name to the IP address. Increasingly mail systems as part of an anti-spam strategy and others may perform a dual look-up, IP to name then name to IP. A Reverse Mapping query will only return the right result for joe in the example below not for www. In this simple case use of a CNAME record for www could fix the problem.


; zone file fragment 
joe        IN      A  ; joe & www = same ip     
www        IN      A

; reverse in-arpa file fragment
.3         IN      PTR

If you define multiple A Records for load balancing or round robin strategy the same problem arises. In a dual look-up, IP to name then name to IP, system this will only work for mail in the example below not for any others.

; zone file fragment 
mail       IN      A  ; round robin    
           IN      A
           IN      A

; reverse file fragment
.3         IN      PTR
.4         IN      PTR
.5         IN      PTR

Pro DNS and BIND by Ron Aitchison


tech info
guides home
dns articles
1 objectives
big picture
2 concepts
3 reverse map
4 dns types
5 install bind
6 samples
7 named.conf
8 dns records
9 howtos
10 tools
11 trouble
12 bind api's
13 dns security
bits & bytes
15 messages
notes & tips
registration FAQ
dns resources
dns rfc's
change log

printer friendly

Print Page

SPF Record Conformant Domain Logo

Copyright © 1994 - 2009 ZyTrax, Inc.
All rights reserved. Legal and Privacy
site by zytrax
Hosted by
web-master at zytrax
Page modified: June 21 2007.