Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Networking > bind9 : reverse lookup and PTR value

Forgot Password?
 Linux Networking   Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 4 Weeks Ago   #1 (permalink)
Just Joined!
 
Join Date: Dec 2008
Location: Luxembourg
Posts: 63
bind9 : reverse lookup and PTR value

Hello,
I have the following bind9 configuration, and I'm trying to resolve reverse lookup IP address to name.

$ttl 38400
mydomain.org. IN SOA myhosting.com. (
1243281304
10800
3600
604800
38400 )
mydomain.org. IN NS xxx.myhosting.com.
mydomain.org. IN A 1.2.3.4
mail.mydomain.org. IN MX 10 mail.mydomain.org.
www IN CNAME mydomain.org.
ftp IN CNAME mydomain.org.
1.2.3.4 IN PTR mydomain.org.


I had the PTR value for reverse lookup

nslookup - localhost

> 1.2.3.4
Server: localhost
Address: 127.0.0.1#53

** server can't find 1.2.3.4.in-addr.arpa: NXDOMAIN

Is my PTR wrong, or what do I need to have the reverse lookup working ?

Note: I replace real IP by 1.2.3.4, same for my domain name.

Bye,
Bruno
bcostacurta is offline  


Reply With Quote
Old 4 Weeks Ago   #2 (permalink)
Linux Engineer
 
Lazydog's Avatar
 
Join Date: Jun 2004
Location: The Key Stone State
Posts: 1,187
Quote:
** server can't find 1.2.3.4.in-addr.arpa: NXDOMAIN
You nee to create a reverse zone and place your reverse lookup in there.
__________________

Regards
Robert

Linux
The adventure of a life time.

Linux User #296285
Get Counted
Lazydog is offline   Reply With Quote
Old 3 Weeks Ago   #3 (permalink)
Just Joined!
 
Join Date: Dec 2008
Location: Luxembourg
Posts: 63
I created the reverse zone. Now it works but for the master only.

nslookup - localhost
> 1.2.3.4
Server: localhost
Address: 127.0.0.1#53

4.3.2.1.in-addr.arpa name = costacurta.org.

But now to notify the slave server ?
I tried the following but it doesn't seems to work :

zone "3.2.1.in-addr.arpa" IN {
type master;
file "/etc/bind/rev.3.2.1.in-addr.arpa";
also-notify {
1.2.3.99;
};
notify yes;
};

I used same syntax for the non-reverse and it works fine.
May the syntax be different for reverse-zone ?
Or other reason like serial value, or delays for slave to being updated ?
I have no access to the slave DNS hosted by my provider.

Thanks for your experience and clarification.

Bye,
Bruno
bcostacurta is offline   Reply With Quote
Old 3 Weeks Ago   #4 (permalink)
Linux Engineer
 
Lazydog's Avatar
 
Join Date: Jun 2004
Location: The Key Stone State
Posts: 1,187
Who is hosting your slave server? If it's your ISP then they most likely already have a reverse zone for the address in question. I would contact them and ask if they do. If they do not you could then ask them why you cannot push your reverse zone to them.
__________________

Regards
Robert

Linux
The adventure of a life time.

Linux User #296285
Get Counted
Lazydog is offline   Reply With Quote
Old 3 Weeks Ago   #5 (permalink)
Just Joined!
 
Join Date: Dec 2008
Location: Luxembourg
Posts: 63
Hummm...indeed this might be the reason.
I contacted my ISP and wait for his feedback about this reverse lookup problem.

Bye,
Bruno
bcostacurta is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:40 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2