Commit 27c1fa93 authored by David Lawrence's avatar David Lawrence
Browse files

use rndc instead of kill to reload the servers ... with the added benefit

that now the body of this test should pass on BSD/OS
parent 2c6d0da3
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: named1.conf,v 1.7 2000/06/22 21:52:52 tale Exp $ */
/* $Id: named1.conf,v 1.8 2000/07/10 11:39:47 tale Exp $ */
options {
query-source address 10.53.0.2;
......@@ -27,6 +27,15 @@ options {
notify yes;
};
key rndc_key {
secret "1234abcd8765";
algorithm hmac-md5;
};
controls {
inet 10.53.0.2 port 9953 allow { 10.53.0.2; } keys { rndc_key; };
};
zone "." {
type hint;
file "root.hint";
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: named2.conf,v 1.7 2000/06/22 21:52:53 tale Exp $ */
/* $Id: named2.conf,v 1.8 2000/07/10 11:39:48 tale Exp $ */
options {
query-source address 10.53.0.2;
......@@ -28,6 +28,15 @@ options {
notify yes;
};
key rndc_key {
secret "1234abcd8765";
algorithm hmac-md5;
};
controls {
inet 10.53.0.2 port 11953 allow { 10.53.0.2; } keys { rndc_key; };
};
view "internal" {
match-clients { 10.53.0.2;
10.53.0.3; };
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: named1.conf,v 1.8 2000/06/22 21:52:57 tale Exp $ */
/* $Id: named1.conf,v 1.9 2000/07/10 11:39:50 tale Exp $ */
options {
query-source address 10.53.0.3;
......@@ -29,6 +29,15 @@ options {
notify yes;
};
key rndc_key {
secret "1234abcd8765";
algorithm hmac-md5;
};
controls {
inet 10.53.0.3 port 9953 allow { 10.53.0.3; } keys { rndc_key; };
};
zone "." {
type hint;
file "root.hint";
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: named2.conf,v 1.8 2000/06/22 21:52:58 tale Exp $ */
/* $Id: named2.conf,v 1.9 2000/07/10 11:39:51 tale Exp $ */
options {
query-source address 10.53.0.3;
......@@ -29,6 +29,15 @@ options {
notify yes;
};
key rndc_key {
secret "1234abcd8765";
algorithm hmac-md5;
};
controls {
inet 10.53.0.3 port 11953 allow { 10.53.0.3; } keys { rndc_key; };
};
zone "." {
type hint;
file "root.hint";
......
/*
* Copyright (C) 2000 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
* SOFTWARE.
*/
/* $Id: rndc.conf,v 1.1 2000/07/10 11:39:45 tale Exp $ */
options {
default-key "rndc_key";
};
key rndc_key {
algorithm hmac-md5;
secret "1234abcd8765";
};
......@@ -15,7 +15,7 @@
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.
# $Id: tests.sh,v 1.16 2000/07/09 16:33:09 tale Exp $
# $Id: tests.sh,v 1.17 2000/07/10 11:39:46 tale Exp $
#
# Perform tests
......@@ -42,10 +42,10 @@ cp ns2/named2.conf ns2/named.conf
cp ns3/named2.conf ns3/named.conf
cp ns2/example2.db ns2/example.db
echo "I:sleeping five seconds then reloading ns2 and ns3"
echo "I:sleeping five seconds then reloading ns2 and ns3 with rndc"
sleep 5
kill -HUP `cat ns2/named.pid`
kill -HUP `cat ns3/named.pid`
$RNDC -c rndc.conf -s 10.53.0.2 -p 9953 reload
$RNDC -c rndc.conf -s 10.53.0.3 -p 9953 reload
echo "I:sleeping one minute"
sleep 60
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment