LinuxQuestions.org
Visit Jeremy's Blog.
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 09-18-2005, 06:49 AM   #1
dute105
LQ Newbie
 
Registered: May 2005
Location: Dhaka
Posts: 12

Rep: Reputation: 0
Zone file problem


Hi

Well i was trying to configure a dns server but to my surprise both the named.conf and reverse zone file are OK whereas the forward zone file is not working. The configuration file for the forward zone is as follows

$TTL 86400
$ORIGIN crab.edu.
@ IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
3600 ) ; minimum

@ IN NS ns1
@ IN NS ns2

;; Mail exchanger
@ IN MX 10 mx1
@ IN MX 12 mx2

;; Address Records
@ IN A 172.16.20.18
gw1 IN A 172.16.20.18
ns1 IN A 172.16.20.18
ns2 IN A 172.16.20.18
www IN A 172.16.20.18
mx1 IN A 172.16.20.18
mx2 IN A 172.16.20.18


OK when i supply this command:
# named-chkconf-zone crab.edu.zone /var/named/crab.edu.zone

I normally get this output:

dns_master_load: /var/named/crab.edu.zone:3: ignoring out-of-zone data (crab.edu)
dns_master_load: /var/named/crab.edu.zone:10: ignoring out-of-zone data (crab.edu)
dns_master_load: /var/named/crab.edu.zone:11: ignoring out-of-zone data (crab.edu)
dns_master_load: /var/named/crab.edu.zone:14: ignoring out-of-zone data (crab.edu)
dns_master_load: /var/named/crab.edu.zone:15: ignoring out-of-zone data (crab.edu)
dns_master_load: /var/named/crab.edu.zone:18: ignoring out-of-zone data (crab.edu)
dns_master_load: /var/named/crab.edu.zone:19: ignoring out-of-zone data (gw1.crab.edu)
dns_master_load: /var/named/crab.edu.zone:20: ignoring out-of-zone data (ns1.crab.edu)
dns_master_load: /var/named/crab.edu.zone:21: ignoring out-of-zone data (ns2.crab.edu)
dns_master_load: /var/named/crab.edu.zone:22: ignoring out-of-zone data (www.crab.edu)
dns_master_load: /var/named/crab.edu.zone:23: ignoring out-of-zone data (mx1.crab.edu)
dns_master_load: /var/named/crab.edu.zone:24: ignoring out-of-zone data (mx2.crab.edu)
zone

crab.edu.zone/IN: could not find NS and/or SOA records
zone crab.edu.zone/IN: has 0 SOA

records
zone crab.edu.zone/IN: has no NS records


And i don't really know what this is about so i really need help from anyone to deal with this problem

Thanks in advance Dute
 
Old 09-19-2005, 12:12 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
You've got a number of extra @s in the file. IIRC you only need the @ before the SOA entry. You might want to look at the example zone file on this page (you'll need to scroll down a bit).
 
Old 09-19-2005, 05:29 AM   #3
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Re: Zone file problem

Quote:
Originally posted by dute105
OK when i supply this command:
# named-chkconf-zone crab.edu.zone /var/named/crab.edu.zone
Try specifying the proper zone name (domain) when you run named-chkconf-zone. i.e.
Code:
named-checkzone crab.edu /var/named/crab.edu.zone 
zone crab.edu/IN: loaded serial 42
OK
 
Old 09-20-2005, 10:30 PM   #4
dute105
LQ Newbie
 
Registered: May 2005
Location: Dhaka
Posts: 12

Original Poster
Rep: Reputation: 0
thanks for the help btmiller. I did exactly as you said but this only reduces the number of errors... I will really apprecaite another suggestion.

Dute
 
  


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
Zone File Creation mr_dizzle Linux - Newbie 4 10-20-2005 08:08 PM
Need help with DNS zone file please:-) TippyToes Linux - Networking 5 04-28-2004 05:32 PM
Makefile and Zone-file-check michedlp Programming 0 02-18-2004 02:22 PM
linux firewall with internet zone, dmz and trusted zone ikhwan98 Linux - Security 1 11-27-2001 04:45 AM
Zone File Nezar Linux - Networking 1 06-10-2001 02:29 PM

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

All times are GMT -5. The time now is 04:34 AM.

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