SVN: admin/dns: README check.sh named.conf named.conf.pld

adamg adamg at pld-linux.org
Sat Feb 10 17:45:55 CET 2007


Author: adamg
Date: Sat Feb 10 17:45:55 2007
New Revision: 8261

Added:
   admin/dns/named.conf
      - copied, changed from rev 8260, admin/dns/named.conf.pld
Removed:
   admin/dns/named.conf.pld
Modified:
   admin/dns/README
   admin/dns/check.sh
Log:
- reverted - you can't have two views matching the same ip,
  thus you can't store your zones together with pld;


Modified: admin/dns/README
==============================================================================
--- admin/dns/README	(original)
+++ admin/dns/README	Sat Feb 10 17:45:55 2007
@@ -4,50 +4,27 @@
 author: Adam Golebiowski (adamg@)
 
 Requirements:
-- bind (no pdns nor djbdns, sorry)
+- bind (no pdns nor djbdns, sorry) - separte for PLD only
 - subversion
 - cron
 
+NOTE:
+    It looks like bind doesn't accept two views matching the same ip, thus
+    you would have to put your zones into named.conf.rest which would be 
+    overwritten next time check.sh is run. 
+
 Installation:
 
 1) checkout dns data somewhere into /var/lib/named 
 
 	# svn co http://svn.pld-linux.org/svn/admin/dns/ /var/lib/named/pld-dns
 
-2) include named.conf.pld in your named.conf file
-
-	# echo 'Include "/etc/named.conf.pld";' >> /var/lib/named/etc/named.conf
-
-3) if you have any zones defined in your named.conf, you need to put them inside
-   a view, simplest way is to change:
-
-	zone "example.com" {
-	...
-	};
-
-	zone "example2.com" {
-	...
-	};
-
-   to
-	view "world" {
-		match-clients { any; };
-
-		zone "example.com" {
-		...
-		};
-		
-		zone "example.com" {
-		..
-		};
-	};
-
-4) run a check.sh to see if everything is ok
+2) run a check.sh to see if everything is ok
 	
 	# cd /var/lib/named/pld-dns
 	# ./check.sh
 
-5) add a crontab entry for a check.sh script, like:
+2) add a crontab entry for a check.sh script, like:
 
 	*/5 * * * * cd /var/lib/named/pld-dns; ./check.sh
 

Modified: admin/dns/check.sh
==============================================================================
--- admin/dns/check.sh	(original)
+++ admin/dns/check.sh	Sat Feb 10 17:45:55 2007
@@ -38,8 +38,8 @@
 # fix perms
 #
 chmod 754 check.sh
-chmod 640 named.conf.{pld,rest,tpnet,vnet} acl_{tpnet,vnet}.conf
-chown root:named named.conf.{pld,rest,tpnet,vnet} acl_{tpnet,vnet}.conf
+chmod 640 named.conf{,.{pld,rest,tpnet,vnet}} acl_{tpnet,vnet}.conf
+chown root:named named.conf{,.{pld,rest,tpnet,vnet}} acl_{tpnet,vnet}.conf
 chmod 644 pld-linux.org.zone{,-{tpnet,vnet}} 
 
 #
@@ -52,7 +52,7 @@
 #
 # move zone and config files to proper dir
 #
-mv named.conf.{pld,rest,tpnet,vnet} acl_{tpnet,vnet}.conf ../etc
+mv named.conf{,.{rest,tpnet,vnet}} acl_{tpnet,vnet}.conf ../etc
 mv pld-linux.org.zone{,-{tpnet,vnet}} ../M
 
 # 

Copied: admin/dns/named.conf (from rev 8260, admin/dns/named.conf.pld)
==============================================================================
--- admin/dns/named.conf.pld	(original)
+++ admin/dns/named.conf	Sat Feb 10 17:45:55 2007
@@ -9,7 +9,7 @@
         datasize default;
 // Uncoment these to enable IPv6 connections support
 // IPv4 will still work
-        listen-on { CHANGE_ME; };
+//      listen-on { CHANGE_ME; };
 //      listen-on-v6 { any; };
 };
 


More information about the pld-cvs-commit mailing list