LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-11-2008, 11:14 AM   #1
mago
Member
 
Registered: Apr 2004
Location: Costa Rica
Distribution: slack current with 2.6.16.18 (still off the hook)
Posts: 284

Rep: Reputation: 33
Bind 9.4 and views not recognized


Hello everyone,

I need to setup a DNS server, I'm running Mandriva 2008, and I need to create views so I can manage the public and the internal records.

Now this is an extract of the named.conf, but sadly it keeps coming up this error:
Code:
named[8419]: /etc/named.conf:179: unknown option 'view'
Code:
include "/etc/rndc.key";

controls {
    inet 127.0.0.1 port 953
    allow { 127.0.0.1; } keys { mykey; };
};

include "/etc/bogon_acl.conf";
include "/etc/trusted_networks_acl.conf";

include "/etc/logging.conf";

options {
    version "";
    directory "/var/named";
    dump-file "/var/tmp/named_dump.db";
    pid-file "/var/run/named.pid";
    statistics-file "/var/tmp/named.stats";
    zone-statistics yes;
    coresize 100M; 
    auth-nxdomain yes;
    query-source address * port *;
    listen-on port 53 { any; };
    cleaning-interval 120;
    transfers-in 20;
    transfers-per-ns 2;
    lame-ttl 0;
    max-ncache-ttl 10800;

forwarders { 196.40.31.66; 196.40.31.67; 200.91.75.5; 208.133.206.44; };
    
    transfer-format many-answers; 

    max-transfer-time-in 60; 

    interface-interval 0; 

    allow-recursion { trusted_networks; };


    blackhole { bogon; };
};

view "private" {
	match-clients	{127.0.0.1/8;
			10.2.0.0/24;
	};
	recursion yes;
	zone	"cr.mydomain.com" {
		type master;
		file "private/master/cr.rbxglobal.com";
		notify explicit;
		allow-transfer { MYDNSIP; };
		allow-update { 10.2.0.0/24; };
	};
	zone	"mydomain.com" {
		type forward;
		forwarders { MYDNSIP; };
	};
	zone	"0.10.in-addr.arpa" {
		type master;
		file "private/master/0.10.in-addr.arpa";
		allow-update { 10.2.0.0/24; };
	};

view "public" {
	match-clients {
		0.0.0.0/0;
	};
	recursion no;
	zone "cr.mydomain.com" {
		type master;
		file "public/master/cr.mydomain.com.zone";
		notify explicit;
		also-notify { MYDNSIP; };
		allow-transfer { MYDNSIP; };
		allow-update { none; };
	};

Last edited by mago; 03-11-2008 at 12:40 PM.
 
Old 03-12-2008, 03:03 AM   #2
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
You need an ACL defining the clients for the "private" view. Take look at the included files /etc/bogon_acl.conf and /etc/trusted_networks_acl.conf to see if it's defined there.
Yoy can also take a look at this howto for details.

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
threads with 0 views rusty_slacker LQ Suggestions & Feedback 7 11-14-2004 04:22 PM
Cloning : Your Views SevenForever General 39 04-19-2004 06:10 PM
Suse 8.2 - should I buy it? what are your views? hamish Linux - Software 5 10-11-2003 02:03 AM
0 views and 1 reply?!?! aizkorri LQ Suggestions & Feedback 1 12-20-2002 06:10 AM
your views? gui10 Linux - General 1 01-26-2002 03:35 AM

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

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