LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-26-2002, 08:19 AM   #1
kayla
LQ Newbie
 
Registered: Apr 2002
Location: Florida
Distribution: mandrake 8.2
Posts: 3

Rep: Reputation: 0
Question Bind 9 problems loading zone file


I recently setup a webserver/nameserver and i have apache working great as well as email. I do have a problem with bind however. I have looked everywhere, no luck. I am getting the following error in my logs:

Apr 26 08:38:54 box named[10115]: dns_rdata_fromtext: /var/named/jayde/jaydesdomain.com:12: near 'box.linuxbox.com.': unexpected token
Apr 26 08:38:54 box named[10115]: zone jaydesdomain.com/IN: loading master file /var/named/jayde/jaydesdomain.com: unexpected token


My named.conf entry is below:

zone "jaydesdomain.com" {
type master;
file "/var/named/jayde/jaydesdomain.com";
};

My zone file is below. It is bare, and works with the A and NS records, as soon as I add an MX record or a CNAME it dies:


$TTL 1d
@ IN SOA ns1.linuxbox.net. hostmaster.box.linuxbox.net. (
2002250520 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum

IN A 66.107.116.42
IN NS ns1.linuxbox.net.
IN NS ns2.linuxbox.net.
IN MX jaydesdomain.com.

Any help would greatly be appreciated!


kayla
 
Old 04-26-2002, 09:05 AM   #2
siddiqu
Member
 
Registered: Mar 2001
Location: India
Posts: 332

Rep: Reputation: 30
Hi..


In MX record u have to put the priority.


Some thing like this


IN MX 10 jaydesdomain.com.


Siddiqu.T

 
Old 04-26-2002, 09:28 AM   #3
kayla
LQ Newbie
 
Registered: Apr 2002
Location: Florida
Distribution: mandrake 8.2
Posts: 3

Original Poster
Rep: Reputation: 0
Talking DOH!

Ok, you are right, duh missed that one completly, however now i am getting a different error

Apr 26 10:23:24 box named[2566]: dns_master_load: /var/named/jayde/jaydesdomain.com:2: unexpected end of line
Apr 26 10:23:24 box named[2566]: dns_master_load: /var/named/jayde/jaydesdomain.com:1: unexpected end of input
Apr 26 10:23:24 box named[2566]: zone jaydesdomain.com/IN: loading master file /var/named/jayde/jaydesdomain.com: unexpected end of input
 
Old 04-26-2002, 09:51 AM   #4
kayla
LQ Newbie
 
Registered: Apr 2002
Location: Florida
Distribution: mandrake 8.2
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs up ok.. Got it

OK thank you for your help in my obvious mistake I knew that one shouldn't have missed it.. I deleted the top line, and it works great now

Thanks again
 
  


Reply



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
help please with bind zone file config smoalne Linux - Newbie 2 12-16-2004 10:56 PM
BIND Zone file problems Ryan0rZ Linux - Software 1 10-14-2004 01:24 PM
BIND DNS Problems with Zone file and Config Init-0 Linux - Networking 6 07-30-2003 04:58 PM
Bind Zone files cbutler Linux - Networking 0 01-08-2002 04:41 PM

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

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