LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Reverse Zone is Not Working in Ubuntu 10.04 DNS (https://www.linuxquestions.org/questions/linux-newbie-8/reverse-zone-is-not-working-in-ubuntu-10-04-dns-832059/)

vijith.pa@gmail.com 09-14-2010 06:11 AM

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

bathory 09-14-2010 06:52 AM

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

vijith.pa@gmail.com 09-14-2010 11:47 PM

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

bathory 09-15-2010 12:10 AM

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

vijith.pa@gmail.com 09-15-2010 01:11 AM

Thank U bathory; it;s working Fine..........
with regards
Vijith P A


All times are GMT -5. The time now is 01:31 AM.