LinuxQuestions.org
Help answer threads with 0 replies.
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 03-31-2016, 10:02 AM   #1
abizjacob
LQ Newbie
 
Registered: Aug 2014
Posts: 1

Rep: Reputation: Disabled
Unhappy bind errors: unknown option 'zone'


Problem... When I try to start bind these are the errors I get:


[root@mx etc]# service named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
/etc/named.rfc1912.zones:13: unknown option 'zone'
/etc/named.rfc1912.zones:19: unknown option 'zone'
/etc/named.rfc1912.zones:25: unknown option 'zone'
/etc/named.rfc1912.zones:31: unknown option 'zone'
/etc/named.rfc1912.zones:37: unknown option 'zone'


Servicer info Centos 6.6 / bind 9.8 / apache 2.2.15

domain bloominggalaxy.com
ip 103.169.71.239


here my codes

named.conf

// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
listen-on port 53 { 127.0.0.1; 103.16.71.239; };
listen-on-v6 port 53 { ::1; };
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; 103.16.71.239/27; };

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 "0.168.192.in-addr-arpa"{
type master;
file "/var/named/chroot/var/named/0.168.192.in.addr.arpa.zone";
allow-update {192.168.1.0/24; );

};

//view localhost_resolver {
// match-clients { localhost; 103.16.71.239/27; };
// match-destinations { localhost; 103.16.71.239/27; };

include "/etc/named.rfc1912.zones";
//include "/etc/named.root.key";
};

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

named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
// and http://www.ietf.org/internet-drafts/...l-zones-02.txt
// (c)2007 R W Franks
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

zone "m.bloominggalaxy.com" IN {
type master;
file "bloominggalaxy.com";
allow-update { none; };
};

zone "localhost" IN {
type master;
file "named.localhost";
allow-update { none; };
};

zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.loopback";
allow-update { none; };
};

zone "0.168.192.in-addr.arpa" IN {
type master;
file "0.168.192.in-addr.arpa";
allow-update { none; };
};

zone "0.in-addr.arpa" IN {
type master;
file "named.empty";
allow-update { none; };
};


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

vi /var/named/chroot/var/named/0.168.192.in.addr.arpa.zone
OA bloominggalaxy.com. root.server.bloominggalaxy.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum

IN NS server.bloominggalaxy.com
254 IN PTR server.bloominggalaxy.com.
1 IN PTR m.bloominggalaxy.com.
2 IN PTR mx.


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

vi /var/named/chroot/var/named/bloominggalaxy.com.zone
$TTL 86400
@ IN SOA @ root (
42 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ; minimum

@ NS server.bloominggalaxy.com
@ NS client1.client.com
server A 103.16.71.239
client1 A 192.168.0.1
client2 A 192.168.0.2
 
Old 03-31-2016, 12:31 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,631

Rep: Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808Reputation: 1808
Hi,

There is an error in name.conf.
You have a ")" instead of "}" in the allow-update line of:
Code:
zone "0.168.192.in-addr-arpa"{
type master;
file "/var/named/chroot/var/named/0.168.192.in.addr.arpa.zone";
allow-update {192.168.1.0/24; };
Regards
 
  


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
bind 9 errors: unknown option 'zone' hivtop Linux - Server 3 03-18-2015 10:24 AM
Bind for remote zone over VPN - reject the client zone benjalien Linux - Server 1 01-08-2015 04:59 PM
Which zone bind dns work either in forward zone are reverse zone sanjay87 Linux - Server 2 06-05-2012 05:21 AM
BIND server not starting, "unknown option 'zone'" StevenW Linux - Networking 6 09-19-2011 07:27 PM
BIND forward zone OK, reverse zone NOT OK! n03x3c Linux - Server 2 11-05-2008 11:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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