Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th May 2009, 08:24 AM
mikerock Offline
Registered User
 
Join Date: May 2009
Posts: 8
Bind Views vs non-views thus restricting by allow-recursion to localnets

Can someone please tell me whether this configuration is still secure as far as not using views and instead using allow-recursion and query-cache only to localnets?

I have a primary and secondary server that hosts authoritative domains but also use the same servers for recursive queries for just a couple internal clients.
I use use "allow-recursion { localnets; localhost; }; therefore denying recursion to external clients but allowing recursion for the servers and a few internal clients.

Code:
options {
	directory "/var/named";
	dump-file "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
	query-source address * port 53;
	version "not currently available";
	allow-recursion { localnets; localhost; };
	allow-query-cache	{ localnets; };
};

include "/etc/rndc.key";

controls {
	inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

include "/etc/named.rfc1912.zones";

zone "." IN {
        type hint;
        file "/var/named/named.ca";
};
zone "168.192.in-addr.arpa" {
       	type master;
        file "/var/named/192.168.rev";
};

zone "example.com" {
	type master;
	file "/var/named/example.com.hosts";
	allow-transfer { 192.168.200.12; };
};

zone "example1.com" {
	type master;
	file "/var/named/example1.com.hosts";
	allow-transfer { 192.168.200.12; };
};

zone "example2.com" {
	type master;
	file "/var/named/example2.com.hosts";
	allow-transfer { 192.168.200.12; };
};

// continues to Example 30.
In testing the above it seems to be secure as I cannot perform recursion from external clients but I do see access denied for query cache from external clients. Since I am not sure whether this was the safest method I used the config below that is setup with internal and external views. The only problem with this method is some reason my internal clients are unable resolve the authoritative servers in the external zone.

Code:
options {
	directory "/var/named";
	dump-file "/var/named/data/cache_dump.db";
                statistics-file "/var/named/data/named_stats.txt";
              query-source address * port 53;
	version "not currently available";
};

include "/etc/rndc.key";

controls {
	inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

view "internal"
{

	match-clients		{ localnets; };
	allow-query		{ localnets; };
	allow-query-cache	{ localnets; };
	recursion yes;

  include "/etc/named.rfc1912.zones";

	zone "." IN {
	        type hint;
	        file "/var/named/named.ca";
	};

	zone "168.192.in-addr.arpa" {
        	type master;
	        file "/var/named/192.168.rev";
	};
};

view "external"
{

	zone "." IN {
	        type hint;
	        file "/var/named/named.ca";
	};

	match-clients		{ localnets; any; };
                recursion no;
	allow-recursion { localnets; };

zone "example.com" {
	type master;
	file "/var/named/example.com.hosts";
	allow-transfer { 192.168.200.12; };
};

zone "example1.com" {
	type master;
	file "/var/named/example1.com.hosts";
	allow-transfer { 192.168.200.12; };
};

zone "example2.com" {
	type master;
	file "/var/named/example2.com.hosts";
	allow-transfer { 192.168.200.12; };
};

};

config is bind-9.5.1-2.P2.fc10.x86_64, Fedora FC10

Last edited by mikerock; 6th May 2009 at 06:42 PM.
Reply With Quote
Reply

Tags
allowrecursion, bind, localnets, nonviews, restricting, views

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Folder views & sudo/su sirschuster Using Fedora 3 12th March 2009 11:40 PM
Cairo-dock in F8 -- missing views? Thetargos Using Fedora 0 19th August 2008 03:10 AM
Any recommendations for my Bind configuration? Using views... jrbush82 Servers & Networking 0 19th January 2006 08:17 AM
Bind DNS views paddyhaig Servers & Networking 0 22nd December 2004 03:03 AM


Current GMT-time: 23:31 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat