LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-13-2005, 05:59 AM   #1
hrajabi
LQ Newbie
 
Registered: Aug 2005
Location: Iran/Tehran
Distribution: Fedora core 3
Posts: 11

Rep: Reputation: 0
Dns configuration error


Hi Every one,
I configured DNS server according to the following:
/etc/named.conf:
zone "Alocardweb.com" IN {
type master;
file "Alocardweb.com";
;Alocardweb.com the name of host that I am going to resolve it.
*************************************
/var/named/Alocardweb.com:
$TTL 1D
@ IN SOA Alocardweb.com. root.Aloweb.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS Alocardweb.com.
@ IN A 172.16.1.253
Alocardweb.com. IN A 172.16.1.253
www IN A 172.16.1.253
*****************************************
/etc/resolv.conf
search Alocardweb.com.
nameserver 172.16.1.253

*****************************************
But when I restart /etc/init.d/named restart ,I envisage the following Error:
Stopping named: [FAILED]
Starting named:
Error in named configuration:
zone localdomain/IN: loaded serial 42
zone localhost/IN: loaded serial 42
zone Alocardweb.com/IN: loading master file Alocardweb.com: file not found
_default/Alocardweb.com/IN: file not found
zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 1997022700
zone 255.in-addr.arpa/IN: loaded serial 42
zone 0.in-addr.arpa/IN: loaded serial 42 [FAILED]
*******************************
I do not know what's the reason error???????
Thanks alot
 
Old 08-13-2005, 06:54 AM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
It would help if you stated what linux distro you are using. By default, some distro's start named in a chroot'd jail. If thats the case, try moving your zone file to /var/named/chroot/var/named. Then try starting named again.

As for named not stopping... have you properly configured rndc? See: man rndc-confgen
 
Old 08-13-2005, 07:27 AM   #3
hrajabi
LQ Newbie
 
Registered: Aug 2005
Location: Iran/Tehran
Distribution: Fedora core 3
Posts: 11

Original Poster
Rep: Reputation: 0
thanks for your Help,
I replace the zone file from /var/named/Alocardweb.com to /var/named/chroot/var/named/Alocardweb.com,but the problems still remain.
 
Old 08-13-2005, 11:54 PM   #4
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Rep: Reputation: 30
Can you post what distro you are using and post your original configuration . i mean named.conf and the zone database files as well.
 
Old 08-15-2005, 12:07 AM   #5
hrajabi
LQ Newbie
 
Registered: Aug 2005
Location: Iran/Tehran
Distribution: Fedora core 3
Posts: 11

Original Poster
Rep: Reputation: 0
Hi Dear,
I use Fedora core 4 and the change in named.conf are the following:
/etc/named.conf:
zone "Alocardweb.com" IN {
type master;
file "Alocardweb.com";
thanks alot.
 
Old 08-15-2005, 03:36 AM   #6
divdude
LQ Newbie
 
Registered: May 2005
Posts: 18

Rep: Reputation: 0
I had similar problems. I dont know what exactly is the problem but
I managed to solve that by removing parts from resolv.conf. Just keep
options section and zone( ".", forward zone, reverse zone and the zone
that pointed named.local). You can erase the rest. I forgot the name of files
but you basically need 4 files(named.local ,forward.zone, reverse.zone and
named.ca(cache file)).
 
Old 08-17-2005, 01:06 AM   #7
hrajabi
LQ Newbie
 
Registered: Aug 2005
Location: Iran/Tehran
Distribution: Fedora core 3
Posts: 11

Original Poster
Rep: Reputation: 0
i do not know what should I do exactly in 4 files:named.local ,forward.zone, reverse.zone
there are configuration of dns a top of this page,is there any change except above?
 
Old 08-17-2005, 02:43 AM   #8
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Rep: Reputation: 30
as i see your named.conf
your curly bracket is not closed. May be you have closed it but not posted!!
for systax checking of named.conf
#named-checkconf
 
  


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
DNS Configuration DoubleOTeC Linux - Networking 3 09-27-2004 12:18 PM
DNS Configuration anibiswas Libranet 3 03-15-2004 08:56 PM
DNS configuration? existo Slackware 1 01-30-2004 12:43 PM
DNS Configuration jojogeorge Linux - Software 3 09-23-2003 06:01 AM
DNS Configuration romel Linux - Newbie 4 09-22-2003 09:45 AM

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

All times are GMT -5. The time now is 09:42 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