LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-06-2005, 11:44 PM   #1
d0ugb
LQ Newbie
 
Registered: Sep 2002
Posts: 9

Rep: Reputation: 0
Annoying syntax error with named.conf


Okay, im a newbie when it comes to setting up and configuring bind. I have been following along with the essential book "DNS and BIND" and i have hit a brick wall. Here is my named.conf
---------------------------------------

options {
directory "/var/bind";

};

zone "m0shady.org" in {
type master;
file "pri/db.m0shady";
};

zone "0.0.10.in-addr.arpa" in {
type master;
file "pri/db.10.0.0;
};

zone "0.0.127.in-addr.arpa." in {
type master;
file "pri/db.127.0.0";
};

zone "." in {
type hint;
file"named.ca";
};

-------------------------------------------------

when i try and execute named i get this error

loading configuration from '/etc/bind/named.conf'
/etc/bind/named.conf:16: missing ';' before '0.0.127.in-addr.arpa.'
/etc/bind/named.conf:16: unknown option '0.0.127.in-addr.arpa.'
/etc/bind/named.conf:25: unexpected end of input
loading configuration: unexpected end of input

this is driving me nuts, im sure that i have typed something wrong, if anyone can help i would appreciate it. Thanx.
 
Old 08-06-2005, 11:53 PM   #2
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Rep: Reputation: 30
before starting named by starting the service's . post the error messege of this command

#named-checkconf
 
Old 08-06-2005, 11:58 PM   #3
d0ugb
LQ Newbie
 
Registered: Sep 2002
Posts: 9

Original Poster
Rep: Reputation: 0
here is the response

m0shady root # named-checkconf
/etc/bind/named.conf:16: missing ';' before '127.in-addr.arpa.'
/etc/bind/named.conf:16: unknown option '127.in-addr.arpa.'
/etc/bind/named.conf:25: unexpected end of input
m0shady root #
 
Old 08-07-2005, 12:22 AM   #4
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
You have a trailing dot after '0.0.127.in-addr.arpa'.

Also, the internet class is default, but if you want to explicitly indicate it in your 'zone' statements, I would use caps: 'IN'.

Good luck.
 
Old 08-07-2005, 12:25 AM   #5
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Rep: Reputation: 30
I think this is much is still not going to avoid the errors.

Can you tell me what distro are you using?
 
Old 08-07-2005, 12:37 AM   #6
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
You also missed a close quote on this line:
file "pri/db.10.0.0;
 
Old 08-07-2005, 08:40 AM   #7
d0ugb
LQ Newbie
 
Registered: Sep 2002
Posts: 9

Original Poster
Rep: Reputation: 0
gentoo

The distro im using is gentoo
 
Old 08-07-2005, 12:20 PM   #8
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
d0ugb

First thing I would do is add a forward zone for localhost
Code:
options {
directory "/var/bind";

};

zone "m0shady.org" in {
type master;
file "pri/db.m0shady";
};

zone "0.0.10.in-addr.arpa" in {
type master;
file "pri/db.10.0.0;
};

zone "localhost" IN {
type master;
file "pri/localhost.zone";
};

zone "0.0.127.in-addr.arpa." in {
type master;
file "pri/db.127.0.0";
};

zone "." in {
type hint;
file"named.ca";
};
/pri/localhost.zone
Code:
$TTL 1W
@       IN      SOA     ns.localhost. root.localhost.  (
                                      2002081601 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      604800     ; Expire - 1 week
                                      86400 )    ; Minimum
		IN      NS      ns
localhost.	IN	A	127.0.0.1
Sorry put it right now
Pete

Last edited by Pete M; 08-07-2005 at 12:27 PM.
 
  


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
Error!! when running named.conf eckertc1 Linux - Networking 14 03-04-2005 07:01 PM
named.conf ... acl syntax freaky al Linux - Networking 12 08-28-2004 08:05 AM
httpd.conf Syntax error tommytomato Linux - Newbie 2 05-25-2004 05:10 AM
cannot find named.conf and /var/named kaushikma Red Hat 1 02-07-2004 12:49 PM
lilo.conf syntax error BBlalock Linux - Newbie 9 07-28-2002 04:15 PM

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

All times are GMT -5. The time now is 07:45 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
Open Source Consulting | Domain Registration