LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-20-2003, 05:39 PM   #1
guanyu
Member
 
Registered: Jul 2001
Distribution: RedHat 7.0,7.1,7.2,7.3,8.0. Sun Solaris
Posts: 111

Rep: Reputation: 15
Reverse DNS problem


guys, I am having DNS problem. I've added the record together. When I did nslookup hostname , it looked fine. When I did nslookup with IP, it didn't point back to the hostname. I am using webmin to add the hostname. Any Idea?
 
Old 12-20-2003, 06:30 PM   #2
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
Did you create a PTR record for each host?
Code:
1.0.168.192.in-addr.arpa.  IN PTR somehost.somedomain.com.
 
Old 12-20-2003, 06:49 PM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Are you doing an nslookup on your Internet IP? If so, you don't control that, your ISP does. No matter what you put in your zone files, they're not authoritative for your netblock (the authority hasn't been delegated to you, so no one will ever use your servers to lookup those IPs).
 
Old 12-20-2003, 07:53 PM   #4
andrecbarros
LQ Newbie
 
Registered: Sep 2003
Location: Brazil
Distribution: Slackware
Posts: 19

Rep: Reputation: 0
What is your named.conf file? Also, how did you write yours zone files?
 
Old 12-20-2003, 10:19 PM   #5
guanyu
Member
 
Registered: Jul 2001
Distribution: RedHat 7.0,7.1,7.2,7.3,8.0. Sun Solaris
Posts: 111

Original Poster
Rep: Reputation: 15
Guys...thanks for you help. I created the PTR and increase the serial by 1. My nslookup for my own internal IP. Another question.. I was requested to change the A1(hostname) to A2(hostname)IP still the same. I have changed it. When I did nslookup A2 it worked fine. When I did nslookup(reverse) IP, it showed up A1. Is it PTR again? I have checked the PTR, it A2-->IP. Any idea?
 
Old 12-21-2003, 01:25 AM   #6
guanyu
Member
 
Registered: Jul 2001
Distribution: RedHat 7.0,7.1,7.2,7.3,8.0. Sun Solaris
Posts: 111

Original Poster
Rep: Reputation: 15
Guys, I found that SOA didn't increase. I think this cause the problem. Even though I updated the correct information. I have manually increase SOA by 1.When I did nslookup SOA remain the same. Any idea guys
 
Old 12-21-2003, 03:47 AM   #7
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Increase the SOA, what??? The SOA should be static (it's the Statement Of Authority). You need to make sure you increment the serial number and -HUP the daemon after every change. The order of events should be like this

edit zone file (you can make as many edits as you like)
finish editing, increment the zone serial number by one
save and close file
# ps -ef|grep named (<-- find the pid of the master named process)
# kill -HUP <pid-of-named>
$ dig @your-dns-server yourdomain.tld <record type>

PS the serial number for each zone is independent of the others. If you change the forward lookup zone (yourdomain.tld) then you need to increment the serial in that zone. If you change the reverse zone (d.c.b.a.in-addr.arpa) then you need to increment the serial in that file.

Last edited by chort; 12-21-2003 at 03:48 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reverse DNS Webbie Linux - Networking 4 10-10-2005 07:49 PM
DNS Reverse lookup problem pazvant Linux - Networking 3 10-10-2005 06:36 AM
dynamic updating reverse-dns problem Garbledwords Linux - Networking 4 06-24-2005 02:04 PM
Postfix/Reverse DNS Problem otisthegbs Linux - Software 0 12-15-2003 01:05 PM
Reverse Dns Problem Hein-ZA Linux - Networking 2 07-15-2003 07:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration