LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 10-29-2004, 12:29 AM   #1
granny
Member
 
Registered: Nov 2002
Distribution: RH
Posts: 141

Rep: Reputation: 15
BIND - SOA record not at top of zone


My BIND is working, well for the most part. But I tried to use an $INCLUDE statement in my zone file, and I get an error.

I have a zone, example.com, that works perfectly fine. Zone file is example.com.zone

At the bottom of the zone file, I place the line

$INCLUDE /var/named/chroot/sales.example.com.zone sales.example.com.
(I have tried many variations of the above, still with no luck)

I have created a zone file named /var/named/chroot/sales.example.com.zone

When I use the $INCLUDE line in example.com.zone and do a named-checkzone example.com example.com.zone, I get this error

dns_master_load: /var/named/chroot/sales.example1.com:2: SOA record not at top of zone (sales.example.com)

zone example.com:/IN: loading master file example.com: not at top of zone

If I comment out the $INCLUDE line and do a named-checkzone on each, they come up with no errors.

Where am I going wrong?

Oh, and the SOA record for both zones is at the top! That's why I don't know what to do about this error.
 
Old 10-29-2004, 09:18 AM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
I haven't reviewd all the latest tip/tricks for bind lately, but I don't think you can include a delegated zone (sub-domain) from within the tld zone.

The proper way (according to the DNS/BIND book) to create a subdomain is...

1) Add the delegation/glue records for the subdomain to the TLD zone.
Code:
# cat db.mydomain
; ------------------------------------------------------------
; sales.mydomain.com delegated zone (Glue Records)
; ------------------------------------------------------------
sales   1d      IN      NS      ns1.sales.mydomain.com.
2) Add the subdomain entry to named.conf
Code:
# cat named.conf
    // Load the mydomain.com zone
    zone "mydomain.com" in {
            type master;                    // Zone is a master
            notify no;                      // Send notifies?
            file "int/db.mydomain";         // Load zone file
    };
 
    // Load the sub-domain sales.mydomain.com zone
    zone "sales.mydomain.com" in {
            type master;                    // Zone is a master
            notify no;                      // Send notifies?
            file "int/db.sales";            // Load zone file
    };
 
Old 10-29-2004, 09:27 AM   #3
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
There can only be one SOA in a zone file.
The SOA record is used to tell where my Authority begins in the DNS Name Space.
If I have authority to the domain.com then I also have authorities to all possible subdomains of that.
I can however delegate authority of a subdomain to someone else.
 
Old 10-29-2004, 09:28 AM   #4
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Explanation my latest post: The zone and domain isnšt the same thing.
 
  


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
bind slave zone macadam Linux - Networking 3 03-03-2005 01:46 PM
Bind DNS Slave zone macadam Linux - Networking 2 03-02-2005 06:49 AM
not top zone coontie Linux - Networking 3 01-29-2004 02:02 PM
DDNS and 2 reverse zones - not at top of zone mule Linux - Networking 2 08-22-2003 01:06 AM
Bind Zone files cbutler Linux - Networking 0 01-08-2002 04:41 PM


All times are GMT -5. The time now is 06:03 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration