This test ensures that named will correctly shutdown
when receiving multiple control connections after processing
of either "rncd stop" or "kill -SIGTERM" commands.
Before the fix, named was crashing due to a race condition happening
between two threads, one running shutdown logic in named/server.c
and other handling control logic in controlconf.c.
This test tries to reproduce the above scenario by issuing multiple
queries to a target named instance, issuing either rndc stop or kill
-SIGTERM command to the same named instance, then starting multiple rndc
status connections to ensure it is not crashing anymore.
(cherry picked from commit 042e509753)
28 lines
502 B
Plaintext
28 lines
502 B
Plaintext
key rndc_key {
|
|
secret "1234abcd8765";
|
|
algorithm hmac-sha256;
|
|
};
|
|
|
|
controls {
|
|
inet 10.53.0.1 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
|
|
};
|
|
|
|
options {
|
|
query-source address 10.53.0.2;
|
|
notify-source 10.53.0.2;
|
|
transfer-source 10.53.0.2;
|
|
port @PORT@;
|
|
listen-on { 10.53.0.2; };
|
|
pid-file "named.pid";
|
|
notify no;
|
|
dnssec-validation no;
|
|
allow-query { any; };
|
|
};
|
|
|
|
# 10.53.0.2 is authoritative for .test domain
|
|
zone "test" {
|
|
type master;
|
|
file "test.db";
|
|
allow-transfer { none; };
|
|
};
|