LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-14-2010, 06:11 AM   #1
vijith.pa@gmail.com
LQ Newbie
 
Registered: Feb 2009
Posts: 26

Rep: Reputation: 0
Question Reverse Zone is Not Working in Ubuntu 10.04 DNS


hai guyz,
i installed bind9 package in Ubuntu 10.04 and i configure my DNS Server
(DNS server ip :192.168.1.156,one client 192.168.1.128)
Configuration files i edited
/etc/bind/named.conf.local
zone "kitesnetwork.edu" IN {
type master;
file "/etc/bind/zones/kitesnetwork.edu.db";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.1.168.192.in-addr.arpa";
};

/etc/bind/zones/kitesnetwork.edu.db
kitesnetwork.edu. IN SOA main.kitesnetwork.edu. root.kitesnetwork.edu. (
200709131 ;serial
8H ; refresh
4H ; retry
4W ; expire
1D ; minimum
)
kitesnetwork.edu. IN NS main.kitesnetwork.edu.
localhost IN A 127.0.0.1
kites-rd IN A 192.168.1.128
main IN A 192.168.1.156
/etc/bind/zones/rev.1.168.192.in-addr.arpa
@ IN SOA main.kitesnetwork.edu. root.kitesnetwork.edu. (
200709131;serial
8H;refresh
4H;retry
4W;expire
1D;minimum
)
IN NS main.kitesnetwork.edu.
156 IN PTR main.kitesnetwork.edu.
128 IN PTR kites-rd.kitesnetwork.edu.
Output
root@main:~# nslookup kites-rd.kitesnetwork.edu
Server: 192.168.1.156
Address: 192.168.1.156#53
Name: kites-rd.kitesnetwork.edu
Address: 192.168.1.128

root@main:~# nslookup 192.168.1.128
Server: 192.168.1.156
Address: 192.168.1.156#53
** server can't find 128.1.168.192.in-addr.arpa: SERVFAIL
pls give the answer???
 
Old 09-14-2010, 06:52 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,885

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Hi,

First of all, you should put your configuration files inside CODE tags, so they can be easily read.
Regarding your zone files:

1. you miss in both of them the initial TTL
Code:
$TTL 86400
2. You need at least one blank space in front of the NS record. Without CODE formatting I cannot tell if it exists. So change the reverse zone to:
Code:
$TTL 86400
@ IN SOA main.kitesnetwork.edu. root.kitesnetwork.edu. (
200709131;serial
8H;refresh
4H;retry
4W;expire
1D;minimum
)
      IN NS main.kitesnetwork.edu.
156 IN PTR main.kitesnetwork.edu.
128 IN PTR kites-rd.kitesnetwork.edu.
3. Last but not least, you can use named-checkzone to check for errors:
Code:
named-checkzone 1.168.192.in-addr.arpa /etc/bind/zones/rev.1.168.192.in-addr.arpa
Regards
 
Old 09-14-2010, 11:47 PM   #3
vijith.pa@gmail.com
LQ Newbie
 
Registered: Feb 2009
Posts: 26

Original Poster
Rep: Reputation: 0
Thumbs up

Thanks bathory real thanks...Now it's Working forward as well as reverse Zones.one more problem
i didnot know this is problem or not
if i dig kites-rd.kitesnetwork.edu in this case i got 1 query 1 answer
flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
But i dig kitesnetwork.edu the output is
flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

with regards
Vijith P A
 
Old 09-15-2010, 12:10 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,885

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Glad to see it worked.
If you want the domain kitesnetwork.edu to be resolvable, you have to give it an A record:
Code:
kitesnetwork.edu. IN A 192.168.1.156
Regards

Last edited by bathory; 09-15-2010 at 02:00 AM.
 
Old 09-15-2010, 01:11 AM   #5
vijith.pa@gmail.com
LQ Newbie
 
Registered: Feb 2009
Posts: 26

Original Poster
Rep: Reputation: 0
Thank U bathory; it;s working Fine..........
with regards
Vijith P A
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
BIND forward zone working reverse not working n03x3c Linux - Server 1 07-03-2010 04:52 AM
DNS/Bind reverse zone file confusion sjphares Linux - Networking 1 12-22-2009 02:29 PM
Sanity Check DNS Reverse Zone Config navigat0 Linux - Server 2 10-21-2009 11:09 AM
URGENT: reverse zone problem in dns anbumanikandan Linux - Software 2 01-22-2007 11:06 AM
problem with one dns reverse zone record rsmccain Linux - Networking 2 10-07-2006 08:17 AM


All times are GMT -5. The time now is 03:49 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration