LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-02-2014, 10:38 AM   #1
vbarun2000
LQ Newbie
 
Registered: Apr 2014
Posts: 8

Rep: Reputation: Disabled
Exclamation Unable to start the named service


vim /etc/named.conf

options {
listen-on port 53 { 127.0.0.1; 192.168.1.162; };
listen-on-v6 port 53 { ::1; 192.168.1.162; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; 192.168.1.0/24; };
allow-transfer { localhost; 192.168.1.162; };
recursion no;

dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

managed-keys-directory "/var/named/dynamic";
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

zone "." IN {
type hint;
file "named.ca";
};
zone"arun.com" IN {
type master;
file "/var/named/arun.com.for";
allow-update { none; };
};

include "/var/named/arun.com.for";
..................................................................

vim /var/named/arun.com.for

$TTL 86400
arun.com. IN SOA www.arun.com. root.arun.com. (
2013042201
3600
1800
604800
86400
)
arun.com. IN NS www.arun.com.
www IN A 192.168.1.162

........................................................

service named start


Starting named:
Error in named configuration:
/var/named/arun.com.for:1: unknown option '$TTL'
/etc/named.conf:51: unexpected token near end of file
[FAILED]
..............................................

plz help me solve this problem
 
Old 04-02-2014, 11:48 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,504

Rep: Reputation: 3982Reputation: 3982Reputation: 3982Reputation: 3982Reputation: 3982Reputation: 3982Reputation: 3982Reputation: 3982Reputation: 3982Reputation: 3982Reputation: 3982
Quote:
Originally Posted by vbarun2000 View Post
vim /etc/named.conf

service named start
Starting named:
Error in named configuration:
/var/named/arun.com.for:1: unknown option '$TTL'
/etc/named.conf:51: unexpected token near end of file
[FAILED]
..............................................
plz help me solve this problem
Spell out your words, please. And did you read/understand the error message? It's VERY clear, and tells you exactly where the syntax error in your file is. Correct the bad syntax in the configuration file, and read the documentation and see examples:
http://www.tldp.org/HOWTO/DNS-HOWTO-7.html
http://www.zytrax.com/books/dns/apa/ttl.html
 
1 members found this post helpful.
  


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
named service cannot be start ?? ngkangjin Linux - Networking 3 10-09-2010 01:51 PM
service named cant start error in named.conf file gayanasa Linux - Server 2 07-02-2008 09:58 AM
Service named will not start - Fedora core 6 haybon777 Linux - Server 1 01-31-2008 04:42 PM
named service won't start? a2vr6 Linux - Newbie 10 09-04-2006 04:20 AM
Named service won't start DanielTan Fedora - Installation 2 09-28-2005 12:54 PM


All times are GMT -5. The time now is 02:12 PM.

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