LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-30-2010, 12:50 AM   #1
gopigandikota
LQ Newbie
 
Registered: Nov 2010
Posts: 1

Rep: Reputation: 0
Question service named.conf error .so plz


hai to all my problem is ,

iam using centOS in vmware , when i configuration dns server by time , named.conf file edit & add

#line 15 port 53 {192.168.224.1; };
#line 23 allow-query { localhost; 192.168.224.0/24; };
#line 32 match-clients { localhost; 192.168.224.0/24; };


then , service named start by time iam getting error like
/etc/named.conf:15: '} expected near '{
 
Old 11-30-2010, 07:47 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by gopigandikota View Post
hai to all my problem is ,
iam using centOS in vmware , when i configuration dns server by time , named.conf file edit & add

#line 15 port 53 {192.168.224.1; };
#line 23 allow-query { localhost; 192.168.224.0/24; };
#line 32 match-clients { localhost; 192.168.224.0/24; };

then , service named start by time iam getting error like
/etc/named.conf:15: '} expected near '{
Ok...you've got an error on line 15, as the message says. Did you try putting a space between the { and the address? Did you look at the previous line in the file, to make sure it's got no syntax errors?
 
Old 11-30-2010, 07:56 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,
The correct syntax is
Code:
listen-on port 53 {192.168.224.1; };
Regards
 
  


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
adding a zone in named.conf in centos 5.2 /etc/named.conf coolhunkank Linux - Newbie 2 05-14-2009 08:45 AM
service named cant start error in named.conf file gayanasa Linux - Server 2 07-02-2008 09:58 AM
BIND9 named conf error mesage ELPDave Debian 3 05-18-2007 06:13 PM
Annoying syntax error with named.conf d0ugb Linux - Networking 7 08-07-2005 12:20 PM
Error!! when running named.conf eckertc1 Linux - Networking 14 03-04-2005 07:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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