LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Bind 9 problems loading zone file (https://www.linuxquestions.org/questions/linux-networking-3/bind-9-problems-loading-zone-file-19512/)

kayla 04-26-2002 08:19 AM

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

siddiqu 04-26-2002 09:05 AM

Hi..


In MX record u have to put the priority.


Some thing like this


IN MX 10 jaydesdomain.com.


Siddiqu.T

:study: :mad: :study:

kayla 04-26-2002 09:28 AM

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

kayla 04-26-2002 09:51 AM

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 :)


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