The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-05-2008
BOFH BOFH is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
[DNS] Reverse Lookup for 2 IP Addresses

Originally I had the server at home and on Comcast so I used dyndns.org for DNS.

Once the server got a bit more popular, I leased a server at a colo facility. They set up the server name in their DNS so I didn't really have any reason to manage my own DNS. DynDNS was managing the domains and I had a reverse lookup for the server so mail was being delivered.

Recently I upgraded server to a more powerful server and this time they didn't add the server to their DNS. When I asked them about it, they offered to manage my DNS for me for a few bucks per domain or they'd delegate it to me.

I checked DynDNS and they'll manage the reverse lookup but it's a few extra bucks. May as well have the ISP manage it as it's a few bucks less if I go that way.

But I've administered bind in the past for entire address ranges so rather than pay someone else to manage it, I'd rather do it myself. Both to save a few bucks but also to keep my fingers in DNS management.

So I got my domain files set up without a problem but I'm not sure how to set up a reverse lookup file for a single or two addresses. I want to make sure it's right before I flip the switch so I thought I'd drop a quick note here and see what sort of response I get

Code:
# cat 172.111.65.in-addr.arpa
$ORIGIN .
$TTL 86400      ; 1 day
172.111.65.IN-ADDR.ARPA IN      SOA ns1.youreadumbass.org. hostmaster.schelin.org. (
                                1               ; serial
                                10800           ; refresh (3 hours)
                                3600            ; retry (1 hour)
                                604800          ; expire (1 week)
                                3600            ; minimum (1 hour)
                                )
                IN      NS      ns1.youreadumbass.org.

$ORIGIN 172.111.65.IN-ADDR.ARPA.
167             IN      PTR     youreadumbass.org.
168             IN      PTR     youreadumbass.org.
Ultimately I believe I'd have the same two PTR records for each of the domains. And I'll contact the ISP to delegate the two IP's to my control with them as my secondary or maybe DynDNS.

So, opinions? Suggestions? Go read the Cricket book?

Thanks.

Carl