OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 10-Nov-2007 10:34:59
Branch: HEAD Handle: 2007111009345900
Modified files:
openpkg-src/bind bind.spec bind.txt
Log:
Switch BIND from using "inet" to "unix" domain socket for the the
rndc(8) channel. This has two advantages: 1. it dramatically reduces
the (re)start times of the OpenPKG "bind" package (which was caused
by long timeouts "rndc status" performed on the "inet" socket) and 2.
it inherently avoids the channel conflict in case multiple OpenPKG
instances run on the same machine.
Summary:
Revision Changes Path
1.131 +1 -1 openpkg-src/bind/bind.spec
1.4 +15 -7 openpkg-src/bind/bind.txt
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/bind/bind.spec
============================================================================
$ cvs diff -u -r1.130 -r1.131 bind.spec
--- openpkg-src/bind/bind.spec 3 Nov 2007 10:41:05 -0000 1.130
+++ openpkg-src/bind/bind.spec 10 Nov 2007 09:34:59 -0000 1.131
@@ -37,7 +37,7 @@
Group: DNS
License: ISC
Version: %{V_opkg}
-Release: 20071103
+Release: 20071110
# package options
%option with_dnssec yes
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/bind/bind.txt
============================================================================
$ cvs diff -u -r1.3 -r1.4 bind.txt
--- openpkg-src/bind/bind.txt 3 Nov 2007 10:41:06 -0000 1.3
+++ openpkg-src/bind/bind.txt 10 Nov 2007 09:34:59 -0000 1.4
@@ -4,9 +4,12 @@
##
controls {
- inet 127.0.0.1 port 953
- allow { 127.0.0.1; }
- keys { "rndc-key"; };
+ unix "@l_prefix@/var/bind/named.ctl"
+ perm 0600 owner @l_ruid@ group @l_rgid@
+ keys { "rndc-key"; };
+ #inet 127.0.0.1 port 953
+ #allow { 127.0.0.1; }
+ #keys { "rndc-key"; };
};
include "@l_prefix@/etc/bind/rndc.key";
@@ -93,12 +96,17 @@
##
options {
- default-server 127.0.0.1;
- default-port 953;
- default-key "rndc-key";
+ default-server localhost-unix;
};
-server localhost {
+server localhost-unix {
+ addresses { "@l_prefix@/var/bind/named.ctl"; };
+ key "rndc-key";
+};
+
+server localhost-inet {
+ addresses { 127.0.0.1; };
+ port 953;
key "rndc-key";
};
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]