4533. [bug] dns_client_update should terminate on prerequiste

failures (NXDOMAIN, YXDOMAIN, NXRRSET, YXRRSET)
                        and also on BADZONE.  [RT #43865]
This commit is contained in:
Mark Andrews
2016-12-13 15:47:03 +11:00
parent 4914e3ddc6
commit 8ca45ba01a
11 changed files with 188 additions and 70 deletions

View File

@@ -55,4 +55,10 @@ view primary {
file "update.bk";
allow-transfer { any; };
};
zone "sample" {
type master;
allow-update { any; };
file "sample.db";
};
};

View File

@@ -0,0 +1,10 @@
@ 0 SOA ns2 . 0 0 0 0 0
@ 0 NS ns2
ns2 0 A 10.53.0.2
;
; These prerequistes are reversed, relative to ns1/sample.db.in:
; 'exists' does not exist.
nxdomain 0 TXT This RRset exists.
; a name with a TXT RRset
no-txt 0 TXT This RRset exists