Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 376315

Summary: net-dns/bind: config-file split
Product: Gentoo Linux Reporter: cilly <cilly>
Component: Current packagesAssignee: Mikle Kolyada (RETIRED) <zlogene>
Status: RESOLVED OBSOLETE    
Severity: enhancement CC: chutzpah, jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://blog.allanglesit.com/2011/02/using-views-with-bind-9/
Whiteboard:
Package list:
Runtime testing required: ---

Description cilly 2011-07-25 08:57:56 UTC
Would be nice to have split config-files, see links:

http://blog.allanglesit.com/2011/02/using-views-with-bind-9/
http://blog.allanglesit.com/2011/02/using-views-with-bind-9-part-2/

In example from debian:

cat /etc/bind/named.conf
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options";

include "/etc/bind/named.conf.local";

include "/etc/bind/named.conf.acl";

I'd also reocmmend adding a config-file for private IPs:

// Consider adding the 1918 zones here, if they are not used in your
// organization
include "/etc/bind/zones.rfc1918";

cat /etc/bind/named.conf.acl
acl master { 10.0.0.11/32; };
acl internals { !10.0.0.1/32; 10.0.0.0/24; localhost; };
acl externals { 10.0.0.1/32; any; };