![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
[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.
So, opinions? Suggestions? Go read the Cricket book? Thanks. Carl |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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.
Carl |
|
#5
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
The e-mail I received:
Quote:
Carl |
|||
| Google The UNIX and Linux Forums |