LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   why my DNS server is not working?? (https://www.linuxquestions.org/questions/linux-newbie-8/why-my-dns-server-is-not-working-614321/)

rajronju 01-17-2008 01:22 PM

why my DNS server is not working??
 
I have configured my server by the following way. But its not working. Can anybody help me to find out my mistakes.
Please.........




This are /var/log/messages last 10 lines:
____________________________________________________________________
Jan 18 00:29:03 pc1 named[4278]: starting BIND 9.2.4 -u named -t /var/named/chro ot
Jan 18 00:29:03 pc1 named[4278]: using 1 CPU
Jan 18 00:29:03 pc1 named[4278]: loading configuration from '/etc/named.conf'
Jan 18 00:29:03 pc1 named: named startup succeeded
Jan 18 00:29:03 pc1 named[4278]: listening on IPv4 interface lo, 127.0.0.1#53
Jan 18 00:29:03 pc1 named[4278]: listening on IPv4 interface eth0, 192.168.10.1#53
Jan 18 00:29:03 pc1 named[4278]: command channel listening on 127.0.0.1#953
Jan 18 00:29:03 pc1 named[4278]: zone 10.168.192.in-addr.arpa/IN: loading master file linuxzone.rz: file not found
Jan 18 00:29:03 pc1 named[4278]: zone linuxzone.net/IN: loading master file linuxzone.fz: file not found
Jan 18 00:29:03 pc1 named[4278]: running
__________________________________________________________________________
This is my named.conf file
__________________________________________________________________________
//
// named.conf for Red Hat caching-nameserver
//

options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};

//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone "." IN {
type hint;
file "named.ca";
};

zone "linuxzone.net" IN {
type master;
file "linuxzone.fz";
allow-update { none; };
};

zone "10.168.192.in-addr.arpa" IN {
type master;
file "linuxzone.rz";
allow-update { none; };
};

include "/etc/rndc.key";
_______________________________________________________________________

This is my linuxzone.fz file (forward zone):

__________________________________________________________________________
$TTL 86400
@ IN SOA pc1.linuxzone.net. root.pc1.linuxzone.net. (
200407019 ; serial (d. adams)
28800 ; refresh
14400 ; retry
3600000 ; expiry
86400 ) ; minimum

IN NS pc1.linuxzone.net.
pc1 IN A 192.168.10.1
www IN CNAME pc1.linuxzone.net.
mail IN CNAME pc1.linuxzone.net.

__________________________________________________________________________

This is my linuxzone.rz file (reverse zone):
___________________________________________________________________________

$TTL 86400
@ IN SOA pc1.linuxzone.net. root.linuxzone.net. (
20040707 ; serial (d. adams)
28800 ; refresh
14400 ; retry
3600000 ; expiry
86400 ) ; minimum

IN NS pc1.linuxzone.net.
1 IN PTR pc1.linuxzone.net.
_______________________________________________________________________________________

This is resolv.conf

_____________________________________________________________________
search linuxzone.net
nameserver 192.168.10.1
______________________________________________________
[root@pc1 ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=pc1.linuxzone.net
_________________________________________

[root@pc1 ~]# rpm -qa |grep bind
bind-utils-9.2.4-2
bind-libs-9.2.4-2
ypbind-1.17.2-3
bind-9.2.4-2
bind-chroot-9.2.4-2
______________________________________________

bathory 01-18-2008 05:54 AM

Quote:

Jan 18 00:29:03 pc1 named[4278]: starting BIND 9.2.4 -u named -t /var/named/chro ot
...
Jan 18 00:29:03 pc1 named[4278]: zone 10.168.192.in-addr.arpa/IN: loading master file linuxzone.rz: file not found
Jan 18 00:29:03 pc1 named[4278]: zone linuxzone.net/IN: loading master file linuxzone.fz: file not found
You're running named chrooted, so the zonefiles location must be relative to the chroot directory (I guess /var/named/chroot/var/named)

rajronju 01-18-2008 01:21 PM

thanx
 
thanx bathory, i am going to try this
thanx again


All times are GMT -5. The time now is 01:17 PM.