LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   isc_lex_gettoken() failed when checkzone (https://www.linuxquestions.org/questions/linux-newbie-8/isc_lex_gettoken-failed-when-checkzone-678772/)

hsia 10-24-2008 05:03 AM

isc_lex_gettoken() failed when checkzone
 
Hi, I am a beginner, in my zonefile, I write:
$TTL 86400 @ IN SOA ns.server.com. root.server.com. ( 2008102401 ; serial 28800 ; refresh 7200 ; retry 604800 ; expire 86400 ) ; minimum TTL of 1 day IN NS ns.sipp4info.com. IN MX 10 mail.sipp4info.com. ns IN A 192.168.1.201 mail IN CNAME ns www IN CNAME ns ftp IN CNAME ns
I don't understand why when I checkzone, I got messages extra input text, isc_lex_gettoken() failed: unbalanced parentheses.
Please help me.

bathory 10-25-2008 10:36 AM

You should put the contents of the zone file inside a CODE tag for better readability. Any way your zone file should look like this
Code:

$TTL 86400
@ IN SOA ns.server.com. root.server.com. (
        2008102401 ; serial
        28800      ; refresh
        7200      ; retry
        604800    ; expire
        86400 )    ; minimum TTL of 1 day

        IN NS ns.sipp4info.com.
        IN MX 10 mail.sipp4info.com.
ns      IN A 192.168.1.201
mail    IN CNAME ns
www    IN CNAME ns
ftp    IN CNAME ns

Check the above and see if it works.
There are also 2 things you need to correct:
1. "ns.server.com. root.server.com." must be equal to the authoritative dns and the person's email responsible for that dns.
2. "mail IN CNAME ns". It's not correct to use a CNAME for a mail server. You can change it to: "mail IN A 192.168.1.201"

Regards

hsia 10-26-2008 10:19 PM

Dear Bathory,

it worked

thanks,
Hsia


All times are GMT -5. The time now is 04:59 PM.