The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Reverse lookup ravis83 Shell Programming and Scripting 1 08-27-2008 01:12 AM
Clueless about how to lookup and reverse lookup IP addresses under a file!!.pls help choco4202002 UNIX for Advanced & Expert Users 0 08-26-2008 10:28 AM
Reverse lookup jpalmer320 IP Networking 1 05-21-2004 06:36 AM
reverse lookup again Westy564 IP Networking 1 01-12-2004 08:37 AM
reverse lookup for email Westy564 IP Networking 1 12-20-2003 04:56 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-05-2008
Registered User
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 401
[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
Reply With Quote
Forum Sponsor
  #2  
Old 09-08-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,200
Carl, your approach seems correct, as well as PTR section. I can't find any gotchas it first glance, I think you're ready to go, certainly, other opinions are appreciated as always.
Reply With Quote
  #3  
Old 09-08-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
Just out of curiosity, will they delegate the whole of 172.111.65.IN-ADDR.ARPA. to you so you can serve out just two addresses, or how does this fit into the big picture?

(Should you have a full stop after "arpa" on the first occurrence?)
Reply With Quote
  #4  
Old 09-08-2008
Registered User
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 401
I used another arpa file as a template and it apparently didn't have it, but I'll check my Cricket book just to be sure.

And they're just going to give me the two addresses. That was where I had the question. Is it really just a file and I can call it whatever I want or does it actually affect the entire range. I wasn't sure if I should have two arpa files:

Code:
# cat 167.172.111.65.in-addr.arpa
$ORIGIN .
$TTL 86400      ; 1 day
167.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 167.172.111.65.IN-ADDR.ARPA.
167             IN      PTR     youreadumbass.org.
Code:
# cat 168.172.111.65.in-addr.arpa
$ORIGIN .
$TTL 86400      ; 1 day
168.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 168.172.111.65.IN-ADDR.ARPA.
168             IN      PTR     youreadumbass.org.
I think that's really where the question comes in.

Carl
Reply With Quote
  #5  
Old 09-09-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
No, you definitely want them both in a single zone 172.11.65.in-addr.arpa. My question is whether your ISP is really going to delegate authority for the whole zone (254 addresses) to you so that you can serve reverse DNS for two of the addresses in it, or do you give your zone file to the guys who have the authority, and they merge it with theirs (in which case you need to know what they need, not what BIND eventually will need).
Reply With Quote
  #6  
Old 09-09-2008
Registered User
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 401
From what I recall, the options were that they'd manage the two IP's for me, or they'd delegate them to either me or to a third party. If they delegate the entire range to me then I'm good on managing a range, basically the first item I posted. I'll have to check the e-mail again and see exactly what they were offering.

Carl
Reply With Quote
  #7  
Old 09-09-2008
Registered User
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 401
The e-mail I received:

Quote:
Server DNS Entry

There are several options for Domain Name Services. Some of which are cost free others with small configuration charges.

1. Your server has DNS installed, but by default it may disabled. Once you enable this you can begin to configure DNS. [Hosting Company] will act as slave to your DNS at your request for no charge, please provide us with the domain name and access to be allowed transfers from your server.

2. If you prefer for [Hosting Company] to act as both slave and master DNS server there is a $20 per domain setup fee and we will handle all of your DNS, please provide us with the domain name, mail server name and IP address and any other hosts and IP addresses you wish to be available.

3. [Hosting Company] can also configure DNS on your server, and add our server as slave. There is a $25 per domain setup fee for this option; however this would allow you to maintain control of your DNS server, and make immediate changes that would automatically replicate to the slave. Please provide access to your server as well as the domain names and hosts you would like configured.
I'm wondering if they're really not going to delegate the two IP's to me and are just talking about A records and not PTR records. I'll have to query them and see what the next step is. I have the A record side ready to go. It's the PTR's that need to work properly for e-mail to be accepted by AOL, Inbox.com, Comcast.Net, and others that are refusing due to a failed reverse lookup.

Carl
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 01:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0