[DNS] Reverse Lookup for 2 IP Addresses


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users [DNS] Reverse Lookup for 2 IP Addresses
# 1  
Old 09-05-2008
[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 Smilie

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? Smilie

Thanks.

Carl
# 2  
Old 09-08-2008
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.
# 3  
Old 09-08-2008
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?)
# 4  
Old 09-08-2008
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
# 5  
Old 09-09-2008
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).
# 6  
Old 09-09-2008
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
# 7  
Old 09-09-2008
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

DNS reverse lookup issue

Hi guys. Ok so let me lay out my configs. I can do a NSlookup from client to server BUT NOT a reverse lookup. DNS server: Optimus.jaydomain.com IP : 192.168.1.50 DNS Client: Megatron.jaydomain.com IP : 192.168.1.60 On Sever: # cat /etc/named.conf // // named.conf // // Provided... (4 Replies)
Discussion started by: Junaid Subhani
4 Replies

2. UNIX for Dummies Questions & Answers

Reverse lookup issue

I came back to my solaris 10 system after a week of being gone and xterm no longer work. I checked into it and the system doesn't reverse lookup my client system. There is a manual entry for my system in the /etc/hosts file and a forward lookup works fine, but I still can't get reverse lookup. Any... (0 Replies)
Discussion started by: clogan1981
0 Replies

3. IP Networking

HOWTO: Linux multihomed dns client - reverse lookup

The following thread is closed: 133552-howto-linux-multihomed-dns-client (Sorry I am not allowed to post URLs) Therefore I write this append in an own thread. The HOWTO in the referenced thread helped me a lot and I only want to append how to make reverse lookup working for a local zone: ... (0 Replies)
Discussion started by: scheruga
0 Replies

4. Shell Programming and Scripting

Reverse lookup and sum also

Hi, I have log file name that shows the view name and some SQL statement time stamp. I want to summarize the SQL time with view. Here is the simple example Here the seqence is first it prints EventContext and all the SQL statement time and again EventContext. Want to summarize the time for... (5 Replies)
Discussion started by: ran123
5 Replies

5. Shell Programming and Scripting

Reverse lookup

hey guys, can anybody help me out here on the following: grep '^\{1,3\}\.\{1,3\}\.\{1,3\}\.\{1,3\}$' ravi.txt mary.txt lisa.txt https://www.unix.com/images/misc/progress.gif i.e what i did was found ip addreses from different files and then i want... (1 Reply)
Discussion started by: ravis83
1 Replies

6. UNIX for Advanced & Expert Users

Clueless about how to lookup and reverse lookup IP addresses under a file!!.pls help

Write a quick shell snippet to find all of the IPV4 IP addresses in any and all of the files under /var/lib/output/*, ignoring whatever else may be in those files. Perform a reverse lookup on each, and format the output neatly, like "IP=192.168.0.1, ... (0 Replies)
Discussion started by: choco4202002
0 Replies

7. IP Networking

Reverse lookup

Help having problems accesing various sites that require me to be a registered .gov domain. My IP is a registered as an .gov but my nameserver record has changed on my DNS configurartion(I don't know why) from something.gov to somethingelse.gov. Same IP, though. When a reverse lookup is... (1 Reply)
Discussion started by: jpalmer320
1 Replies

8. UNIX for Dummies Questions & Answers

Unix 8.2 and reverse Lookup

We have Unix configured as our external DNS, forward DNS is working properly, however Reverse lookup is not working. Any idea what the problem is? I have checked the named.boot and .rev file and everything seems to be correctly. However it appears that the reverse zone file in the named.boot... (2 Replies)
Discussion started by: cassy
2 Replies

9. IP Networking

reverse lookup again

our server (solaris, bind v 8.1.2) is suppose to be the authoritive or the master and our isp's server is suppose be the secondary. i've created a reverse lookup zone file and added an entry for it in my named.conf file. i've restarted the dns daemon and i don't have any errors in... (1 Reply)
Discussion started by: Westy564
1 Replies

10. IP Networking

reverse lookup for email

when we send email or try to telnet to a site that requires reverse lookup to be enabled the connection is refused. i have the O'Reilly book DNS and Bind and in it are examples of what the reverse zone file should look like. i don't see a line that defines an email server in the example. is... (1 Reply)
Discussion started by: Westy564
1 Replies
Login or Register to Ask a Question