LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-15-2018, 09:15 AM   #1
linux csit432
LQ Newbie
 
Registered: Mar 2018
Posts: 2

Rep: Reputation: Disabled
unknown option 'zone' error when running the command "sudo named-checkconf"


I received these errors when running the command "sudo named-checkconf"
/etc/bind/named.conf.local:4: unknown option 'zone'
/etc/bind/named.conf.local:10: unknown option 'zone'
/etc/bind/named.conf.default-zones:2: unknown option 'zone'
/etc/bind/named.conf.default-zones:10: unknown option 'zone'
/etc/bind/named.conf.default-zones:15: unknown option 'zone'
/etc/bind/named.conf.default-zones:20: unknown option 'zone'
/etc/bind/named.conf.default-zones:25: unknown option 'zone'
/etc/bind/named.conf:12: '}' expected near end of file

CODE:

//Consider adding the 1918 zones here, if they are not used in your organization
//include "/etc/bind/zones.rfc1918";
zone "ex.com" {
type master;
file "/etc/bind/zones/db.ex";
allow-transfer { 192.168.1.124;};
};

zone "1.168.192.in-addr.arpa" {
type master;
file "/etc/bind/zones/db.192.168.1";
allow-transfer { 192.168.1.124;};
};
 
Old 03-15-2018, 09:52 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,820
Blog Entries: 15

Rep: Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664
It is treating your zone entries as "options" which they aren't.

Is what you displayed the start of the file or just the start of the zones? Presumably it isn't the complete file as you got errors on later lines for "zone" that you didn't include.

What, if anything, is ABOVE your zones in the "options" section? Did you properly close the options section?
 
Old 03-15-2018, 06:41 PM   #3
linux csit432
LQ Newbie
 
Registered: Mar 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you MensaWater
I found the error on the /etc/bind/named.conf.options which doesnt have a closing bracket. I thought the error on this file because the file name was shown in the errors.
 
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
BIND server not starting, "unknown option 'zone'" StevenW Linux - Networking 6 09-19-2011 07:27 PM
error "3 unknown user 'named'" mstahl Fedora 4 08-28-2005 08:27 AM
rpm -bp command not working says "-bp: unknown option" Niceman2005 Linux - Software 2 11-08-2004 02:36 AM
dns named.conf: "view" unknown option rioguia Linux - Networking 16 11-02-2004 12:04 PM
Firefox -remote option generates "No running window found" error lasindi Linux - Software 6 09-23-2004 11:25 PM

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

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