LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-17-2008, 02:22 PM   #1
rajronju
LQ Newbie
 
Registered: Jan 2008
Posts: 3

Rep: Reputation: 0
Red face 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
______________________________________________
 
Old 01-18-2008, 06:54 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,900

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
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)
 
Old 01-18-2008, 02:21 PM   #3
rajronju
LQ Newbie
 
Registered: Jan 2008
Posts: 3

Original Poster
Rep: Reputation: 0
thanx

thanx bathory, i am going to try this
thanx again
 
  


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
LXer: Find out DNS Server Version With DNS Server Fingerprinting Tool LXer Syndicated Linux News 0 12-21-2007 06:30 PM
LXer: Find out DNS Server Version With DNS Server Fingeprinting Tool LXer Syndicated Linux News 0 12-21-2007 05:50 PM
DNS Server not working on Linux Router Trano Linux - Networking 5 04-21-2005 02:41 PM
DNS from DHCP server not working mikegorb Linux - Networking 1 10-25-2004 04:02 AM
urgent:: internet connection sharing: DNS server not working shyam_d_sundar Linux - Networking 1 07-16-2004 12:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration