diff options
Diffstat (limited to 'bin/tests/system/nsupdate/ns1')
18 files changed, 458 insertions, 0 deletions
diff --git a/bin/tests/system/nsupdate/ns1/example1.db b/bin/tests/system/nsupdate/ns1/example1.db new file mode 100644 index 0000000..566b0a0 --- /dev/null +++ b/bin/tests/system/nsupdate/ns1/example1.db @@ -0,0 +1,146 @@ +; Copyright (C) Internet Systems Consortium, Inc. ("ISC") +; +; SPDX-License-Identifier: MPL-2.0 +; +; This Source Code Form is subject to the terms of the Mozilla Public +; License, v. 2.0. If a copy of the MPL was not distributed with this +; file, you can obtain one at https://mozilla.org/MPL/2.0/. +; +; See the COPYRIGHT file distributed with this work for additional +; information regarding copyright ownership. + +$ORIGIN . +$TTL 300 ; 5 minutes +example.nil IN SOA ns1.example.nil. hostmaster.example.nil. ( + 1 ; serial + 2000 ; refresh (2000 seconds) + 2000 ; retry (2000 seconds) + 1814400 ; expire (3 weeks) + 3600 ; minimum (1 hour) + ) +example.nil. NS ns1.example.nil. +ns1.example.nil. A 10.53.0.1 +example.nil. NS ns2.example.nil. +ns2.example.nil. A 10.53.0.2 + +$ORIGIN example.nil. +* MX 10 mail +a TXT "foo foo foo" + PTR foo.net. +$TTL 3600 ; 1 hour +a01 A 0.0.0.0 +a02 A 255.255.255.255 +a601 AAAA ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff +afsdb01 AFSDB 0 hostname +afsdb02 AFSDB 65535 . +$TTL 300 ; 5 minutes +b CNAME foo.net. +c A 73.80.65.49 +$TTL 3600 ; 1 hour +cert01 CERT 65534 65535 PRIVATEOID ( + MxFcby9k/yvedMfQgKzhH5er0Mu/vILz45IkskceFGgi + WCn/GxHhai6VAuHAoNUz4YoU1tVfSCSqQYn6//11U6Nl + d80jEeC8aTrO+KKmCaY= ) +cname01 CNAME cname-target. +cname02 CNAME cname-target +cname03 CNAME . +$TTL 300 ; 5 minutes +d A 73.80.65.49 +$TTL 3600 ; 1 hour +dname01 DNAME dname-target. +dname02 DNAME dname-target +dname03 DNAME . +$TTL 300 ; 5 minutes +e MX 10 mail + TXT "one" + TXT "three" + TXT "two" + A 73.80.65.49 + A 73.80.65.50 + A 73.80.65.52 + A 73.80.65.51 +f A 73.80.65.52 +$TTL 3600 ; 1 hour +gpos01 GPOS "-22.6882" "116.8652" "250.0" +gpos02 GPOS "" "" "" +hinfo01 HINFO "Generic PC clone" "NetBSD-1.4" +hinfo02 HINFO "PC" "NetBSD" +isdn01 ISDN "isdn-address" +isdn02 ISDN "isdn-address" "subaddress" +isdn03 ISDN "isdn-address" +isdn04 ISDN "isdn-address" "subaddress" +key01 KEY 512 255 1 ( + AQMFD5raczCJHViKtLYhWGz8hMY9UGRuniJDBzC7w0aR + yzWZriO6i2odGWWQVucZqKVsENW91IOW4vqudngPZsY3 + GvQ/xVA8/7pyFj6b7Esga60zyGW6LFe9r8n6paHrlG5o + jqf0BaqHT+8= ) +kx01 KX 10 kdc +kx02 KX 10 . +loc01 LOC 60 9 0.000 N 24 39 0.000 E 10.00m 20m 2000m 20m +loc02 LOC 60 9 0.000 N 24 39 0.000 E 10.00m 20m 2000m 20m +mb01 MG madname +mb02 MG . +mg01 MG mgmname +mg02 MG . +minfo01 MINFO rmailbx emailbx +minfo02 MINFO . . +mr01 MR mrname +mr02 MR . +mx01 MX 10 mail +mx02 MX 10 . +naptr01 NAPTR 0 0 "" "" "" . +naptr02 NAPTR 65535 65535 "blurgh" "blorf" "blllbb" foo. +nsap-ptr01 NSAP-PTR foo. + NSAP-PTR . +nsap01 NSAP 0x47000580005a0000000001e133ffffff00016100 +nsap02 NSAP 0x47000580005a0000000001e133ffffff00016100 +nxt01 NXT a.secure ( NS SOA MX SIG KEY LOC NXT ) +nxt02 NXT . ( NSAP-PTR NXT ) +nxt03 NXT . ( A ) +nxt04 NXT . ( 127 ) +ptr01 PTR example.nil. +px01 PX 65535 foo. bar. +px02 PX 65535 . . +rp01 RP mbox-dname txt-dname +rp02 RP . . +rt01 RT 0 intermediate-host +rt02 RT 65535 . +$TTL 300 ; 5 minutes +s NS ns.s +$ORIGIN s.example.nil. +ns A 73.80.65.49 +$ORIGIN example.nil. +$TTL 3600 ; 1 hour +sig01 SIG NXT 1 3 3600 20000102030405 ( + 19961211100908 2143 foo + MxFcby9k/yvedMfQgKzhH5er0Mu/vILz45IkskceFGgi + WCn/GxHhai6VAuHAoNUz4YoU1tVfSCSqQYn6//11U6Nl + d80jEeC8aTrO+KKmCaY= ) +srv01 SRV 0 0 0 . +srv02 SRV 65535 65535 65535 old-slow-box.example.com. +$TTL 301 ; 5 minutes 1 second +t A 73.80.65.49 +$TTL 3600 ; 1 hour +txt01 TXT "foo" +txt02 TXT "foo" "bar" +txt03 TXT "foo" +txt04 TXT "foo" "bar" +txt05 TXT "foo bar" +txt06 TXT "foo bar" +txt07 TXT "foo bar" +txt08 TXT "foo\010bar" +txt09 TXT "foo\010bar" +txt10 TXT "foo bar" +txt11 TXT "\"foo\"" +txt12 TXT "\"foo\"" +$TTL 300 ; 5 minutes +u TXT "txt-not-in-nxt" +$ORIGIN u.example.nil. +a A 73.80.65.49 +b A 73.80.65.49 +$ORIGIN example.nil. +$TTL 3600 ; 1 hour +wks01 WKS 10.0.0.1 6 ( 0 1 2 21 23 ) +wks02 WKS 10.0.0.1 17 ( 0 1 2 53 ) +wks03 WKS 10.0.0.2 6 ( 65535 ) +x2501 X25 "123456789" diff --git a/bin/tests/system/nsupdate/ns1/legacy/Klegacy-157.+157+23571.key b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-157.+157+23571.key new file mode 100644 index 0000000..bed002b --- /dev/null +++ b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-157.+157+23571.key @@ -0,0 +1 @@ +legacy-157. IN KEY 0 3 157 mGcDSCx/fF121GOVJlITLg== diff --git a/bin/tests/system/nsupdate/ns1/legacy/Klegacy-157.+157+23571.private b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-157.+157+23571.private new file mode 100644 index 0000000..3ce72dd --- /dev/null +++ b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-157.+157+23571.private @@ -0,0 +1,7 @@ +Private-key-format: v1.3 +Algorithm: 157 (HMAC_MD5) +Key: mGcDSCx/fF121GOVJlITLg== +Bits: AAA= +Created: 20230619042408 +Publish: 20230619042408 +Activate: 20230619042408 diff --git a/bin/tests/system/nsupdate/ns1/legacy/Klegacy-161.+161+23350.key b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-161.+161+23350.key new file mode 100644 index 0000000..cb50883 --- /dev/null +++ b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-161.+161+23350.key @@ -0,0 +1 @@ +legacy-161. IN KEY 0 3 161 N80fGvcr8JifzRUJ62R4rQ== diff --git a/bin/tests/system/nsupdate/ns1/legacy/Klegacy-161.+161+23350.private b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-161.+161+23350.private new file mode 100644 index 0000000..dea2850 --- /dev/null +++ b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-161.+161+23350.private @@ -0,0 +1,7 @@ +Private-key-format: v1.3 +Algorithm: 161 (HMAC_SHA1) +Key: N80fGvcr8JifzRUJ62R4rQ== +Bits: AAA= +Created: 20230619042427 +Publish: 20230619042427 +Activate: 20230619042427 diff --git a/bin/tests/system/nsupdate/ns1/legacy/Klegacy-162.+162+00032.key b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-162.+162+00032.key new file mode 100644 index 0000000..126c94f --- /dev/null +++ b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-162.+162+00032.key @@ -0,0 +1 @@ +legacy-162. IN KEY 0 3 162 nSIKzFAGS7/tvBs8JteI+Q== diff --git a/bin/tests/system/nsupdate/ns1/legacy/Klegacy-162.+162+00032.private b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-162.+162+00032.private new file mode 100644 index 0000000..af78756 --- /dev/null +++ b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-162.+162+00032.private @@ -0,0 +1,7 @@ +Private-key-format: v1.3 +Algorithm: 162 (HMAC_SHA224) +Key: nSIKzFAGS7/tvBs8JteI+Q== +Bits: AAA= +Created: 20230619042555 +Publish: 20230619042555 +Activate: 20230619042555 diff --git a/bin/tests/system/nsupdate/ns1/legacy/Klegacy-163.+163+48857.key b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-163.+163+48857.key new file mode 100644 index 0000000..6945b1b --- /dev/null +++ b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-163.+163+48857.key @@ -0,0 +1 @@ +legacy-163. IN KEY 0 3 163 CvaupxnDeES3HnlYhTq53w== diff --git a/bin/tests/system/nsupdate/ns1/legacy/Klegacy-163.+163+48857.private b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-163.+163+48857.private new file mode 100644 index 0000000..590ba14 --- /dev/null +++ b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-163.+163+48857.private @@ -0,0 +1,7 @@ +Private-key-format: v1.3 +Algorithm: 163 (HMAC_SHA256) +Key: CvaupxnDeES3HnlYhTq53w== +Bits: AAA= +Created: 20230619042525 +Publish: 20230619042525 +Activate: 20230619042525 diff --git a/bin/tests/system/nsupdate/ns1/legacy/Klegacy-164.+164+09001.key b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-164.+164+09001.key new file mode 100644 index 0000000..4869618 --- /dev/null +++ b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-164.+164+09001.key @@ -0,0 +1 @@ +legacy-164. IN KEY 0 3 164 wDldBJwJrYfPoL1Pj4ucOQ== diff --git a/bin/tests/system/nsupdate/ns1/legacy/Klegacy-164.+164+09001.private b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-164.+164+09001.private new file mode 100644 index 0000000..f06f67a --- /dev/null +++ b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-164.+164+09001.private @@ -0,0 +1,7 @@ +Private-key-format: v1.3 +Algorithm: 164 (HMAC_SHA384) +Key: wDldBJwJrYfPoL1Pj4ucOQ== +Bits: AAA= +Created: 20230619042615 +Publish: 20230619042615 +Activate: 20230619042615 diff --git a/bin/tests/system/nsupdate/ns1/legacy/Klegacy-165.+165+61012.key b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-165.+165+61012.key new file mode 100644 index 0000000..45a2811 --- /dev/null +++ b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-165.+165+61012.key @@ -0,0 +1 @@ +legacy-165. IN KEY 0 3 165 OgZrTcEa8P76hVY+xyN7Wg== diff --git a/bin/tests/system/nsupdate/ns1/legacy/Klegacy-165.+165+61012.private b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-165.+165+61012.private new file mode 100644 index 0000000..1635f2a --- /dev/null +++ b/bin/tests/system/nsupdate/ns1/legacy/Klegacy-165.+165+61012.private @@ -0,0 +1,7 @@ +Private-key-format: v1.3 +Algorithm: 165 (HMAC_SHA512) +Key: OgZrTcEa8P76hVY+xyN7Wg== +Bits: AAA= +Created: 20230619042627 +Publish: 20230619042627 +Activate: 20230619042627 diff --git a/bin/tests/system/nsupdate/ns1/many.test.db.in b/bin/tests/system/nsupdate/ns1/many.test.db.in new file mode 100644 index 0000000..824971b --- /dev/null +++ b/bin/tests/system/nsupdate/ns1/many.test.db.in @@ -0,0 +1,21 @@ +; Copyright (C) Internet Systems Consortium, Inc. ("ISC") +; +; SPDX-License-Identifier: MPL-2.0 +; +; This Source Code Form is subject to the terms of the Mozilla Public +; License, v. 2.0. If a copy of the MPL was not distributed with this +; file, you can obtain one at https://mozilla.org/MPL/2.0/. +; +; See the COPYRIGHT file distributed with this work for additional +; information regarding copyright ownership. + +$TTL 300 ; 5 minutes +@ IN SOA ns1.example.nil. hostmaster.example.nil. ( + 1 ; serial + 2000 ; refresh (2000 seconds) + 2000 ; retry (2000 seconds) + 1814400 ; expire (3 weeks) + 3600 ; minimum (1 hour) + ) +@ NS ns1.example.nil. + NS ns2.example.nil. diff --git a/bin/tests/system/nsupdate/ns1/max-ttl.db b/bin/tests/system/nsupdate/ns1/max-ttl.db new file mode 100644 index 0000000..fea00b9 --- /dev/null +++ b/bin/tests/system/nsupdate/ns1/max-ttl.db @@ -0,0 +1,29 @@ +; Copyright (C) Internet Systems Consortium, Inc. ("ISC") +; +; SPDX-License-Identifier: MPL-2.0 +; +; This Source Code Form is subject to the terms of the Mozilla Public +; License, v. 2.0. If a copy of the MPL was not distributed with this +; file, you can obtain one at https://mozilla.org/MPL/2.0/. +; +; See the COPYRIGHT file distributed with this work for additional +; information regarding copyright ownership. + +$ORIGIN . +$TTL 300 ; 5 minutes +max-ttl.nil IN SOA ns1.max-ttl.nil. hostmaster.max-ttl.nil. ( + 1 ; serial + 2000 ; refresh (2000 seconds) + 2000 ; retry (2000 seconds) + 1814400 ; expire (3 weeks) + 3600 ; minimum (1 hour) + ) +max-ttl.nil. NS ns1.max-ttl.nil. +ns1.max-ttl.nil. A 10.53.0.1 +max-ttl.nil. NS ns2.max-ttl.nil. +ns2.max-ttl.nil. A 10.53.0.2 + +$ORIGIN max-ttl.nil. +* MX 10 mail +a TXT "foo foo foo" + PTR foo.net. diff --git a/bin/tests/system/nsupdate/ns1/maxjournal.db.in b/bin/tests/system/nsupdate/ns1/maxjournal.db.in new file mode 100644 index 0000000..d64842b --- /dev/null +++ b/bin/tests/system/nsupdate/ns1/maxjournal.db.in @@ -0,0 +1,20 @@ +; Copyright (C) Internet Systems Consortium, Inc. ("ISC") +; +; SPDX-License-Identifier: MPL-2.0 +; +; This Source Code Form is subject to the terms of the Mozilla Public +; License, v. 2.0. If a copy of the MPL was not distributed with this +; file, you can obtain one at https://mozilla.org/MPL/2.0/. +; +; See the COPYRIGHT file distributed with this work for additional +; information regarding copyright ownership. + +$TTL 300 ; 5 minutes +@ IN SOA ns1.example.nil. hostmaster.example.nil. ( + 1 ; serial + 2000 ; refresh (2000 seconds) + 2000 ; retry (2000 seconds) + 1814400 ; expire (3 weeks) + 3600 ; minimum (1 hour) + ) +@ NS ns1.example.nil. diff --git a/bin/tests/system/nsupdate/ns1/named.conf.in b/bin/tests/system/nsupdate/ns1/named.conf.in new file mode 100644 index 0000000..2c1899f --- /dev/null +++ b/bin/tests/system/nsupdate/ns1/named.conf.in @@ -0,0 +1,175 @@ +/* + * Copyright (C) Internet Systems Consortium, Inc. ("ISC") + * + * SPDX-License-Identifier: MPL-2.0 + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, you can obtain one at https://mozilla.org/MPL/2.0/. + * + * See the COPYRIGHT file distributed with this work for additional + * information regarding copyright ownership. + */ + +options { + query-source address 10.53.0.1; + notify-source 10.53.0.1; + transfer-source 10.53.0.1; + port @PORT@; + pid-file "named.pid"; + session-keyfile "session.key"; + listen-on { 10.53.0.1; 127.0.0.1; }; + listen-on-v6 { none; }; + recursion no; + notify yes; + minimal-responses no; + update-quota 1; + dnssec-validation no; +}; + +acl named-acl { + any; +}; + +key rndc_key { + secret "1234abcd8765"; + algorithm @DEFAULT_HMAC@; +}; + +controls { + inet 10.53.0.1 port @CONTROLPORT@ allow { any; } keys { rndc_key; }; +}; + +key altkey { + algorithm hmac-md5; + secret "1234abcd8765"; +}; + +key restricted.example.nil { + algorithm hmac-md5; + secret "1234abcd8765"; +}; + +key zonesub-key.example.nil { + algorithm hmac-md5; + secret "1234subk8765"; +}; + +include "ddns.key"; + +zone "example.nil" { + type primary; + file "example.db"; + check-integrity no; + check-mx ignore; + update-policy { + grant zonesub-key.example.nil zonesub TXT; + grant ddns-key.example.nil subdomain example.nil ANY; + grant restricted.example.nil subdomain restricted.example.nil ANY; + }; + allow-transfer { any; }; +}; + +zone "max-ttl.nil" { + type primary; + file "max-ttl.db"; + max-zone-ttl 300; + check-integrity no; + allow-update { named-acl; }; + allow-transfer { any; }; +}; + +zone "other.nil" { + type primary; + file "other.db"; + check-integrity no; + check-mx warn; + update-policy local; + allow-query { !10.53.0.2; any; }; + allow-query-on { 10.53.0.1; 127.0.0.1; }; + allow-transfer { any; }; +}; + +primaries others { + 10.53.0.2 port @PORT@; + 10.53.0.2 port @PORT@ key altkey; +}; + +zone "update.nil" { + type primary; + file "update.db"; + check-integrity no; + check-mx fail; + allow-update { any; }; + allow-transfer { any; }; + also-notify { others; }; +}; + +zone "unixtime.nil" { + type primary; + file "unixtime.db"; + check-integrity no; + allow-update { any; }; + allow-transfer { any; }; + serial-update-method unixtime; +}; + +zone "yyyymmddvv.nil" { + type primary; + file "yyyymmddvv.db"; + check-integrity no; + allow-update { any; }; + allow-transfer { any; }; + serial-update-method date; +}; + +include "md5.key"; +include "sha1.key"; +include "sha224.key"; +include "sha256.key"; +include "sha384.key"; +include "sha512.key"; +include "legacy157.key"; +include "legacy161.key"; +include "legacy162.key"; +include "legacy163.key"; +include "legacy164.key"; +include "legacy165.key"; + +zone "keytests.nil" { + type primary; + file "keytests.db"; + update-policy { + grant md5-key name md5.keytests.nil. ANY; + grant sha1-key name sha1.keytests.nil. ANY; + grant sha224-key name sha224.keytests.nil. ANY; + grant sha256-key name sha256.keytests.nil. ANY; + grant sha384-key name sha384.keytests.nil. ANY; + grant sha512-key name sha512.keytests.nil. ANY; + grant legacy-157 name 157.keytests.nil. ANY; + grant legacy-161 name 161.keytests.nil. ANY; + grant legacy-162 name 162.keytests.nil. ANY; + grant legacy-163 name 163.keytests.nil. ANY; + grant legacy-164 name 164.keytests.nil. ANY; + grant legacy-165 name 165.keytests.nil. ANY; + }; +}; + +zone "many.test" { + type primary; + allow-update { any; }; + file "many.test.db"; +}; + +zone "sample" { + type primary; + allow-update { any; }; + file "sample.db"; +}; + +zone "maxjournal.test" { + type primary; + allow-update { any; }; + file "maxjournal.db"; + max-journal-size default; +}; diff --git a/bin/tests/system/nsupdate/ns1/sample.db.in b/bin/tests/system/nsupdate/ns1/sample.db.in new file mode 100644 index 0000000..9118bef --- /dev/null +++ b/bin/tests/system/nsupdate/ns1/sample.db.in @@ -0,0 +1,19 @@ +; Copyright (C) Internet Systems Consortium, Inc. ("ISC") +; +; SPDX-License-Identifier: MPL-2.0 +; +; This Source Code Form is subject to the terms of the Mozilla Public +; License, v. 2.0. If a copy of the MPL was not distributed with this +; file, you can obtain one at https://mozilla.org/MPL/2.0/. +; +; See the COPYRIGHT file distributed with this work for additional +; information regarding copyright ownership. + +@ 0 SOA ns1 . 0 0 0 0 0 +@ 0 NS ns1 +ns1 0 A 10.53.0.1 +; a RRset that exists +exists 0 TXT This RRset exists. +; nxdomain +; A named without a TXT RRset +no-txt 0 A 1.2.3.4 |