LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-24-2008, 06:03 AM   #1
hsia
LQ Newbie
 
Registered: Oct 2008
Posts: 14

Rep: Reputation: 0
Question 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.
 
Old 10-25-2008, 11:36 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,523

Rep: Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503Reputation: 1503
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
 
Old 10-26-2008, 11:19 PM   #3
hsia
LQ Newbie
 
Registered: Oct 2008
Posts: 14

Original Poster
Rep: Reputation: 0
Dear Bathory,

it worked

thanks,
Hsia
 
  


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
Bind9: NDC command failed : rndc: connect failed: connection refused Boudewijn Linux - Networking 19 01-02-2014 08:19 AM
named-checkzone mahmoud Linux - Newbie 1 06-07-2006 02:30 PM
online_update failed - ERROR(Media:connection failed)[Connect failed] rover SUSE / openSUSE 8 02-22-2005 08:57 AM
unpacking of archive failed: cpio: read failed-input/output error rafc Linux - Newbie 0 04-21-2004 10:03 AM
Loosing CD Drive while installing Mandrake 9.2 (ldconfig failed or idconfig failed) sjzabel Linux - General 3 02-26-2004 05:35 PM


All times are GMT -5. The time now is 01:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration