diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 18:37:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 18:37:14 +0000 |
commit | ea648e70a989cca190cd7403fe892fd2dcc290b4 (patch) | |
tree | e2b6b1c647da68b0d4d66082835e256eb30970e8 /bin/tests/system/masterformat/ns1 | |
parent | Initial commit. (diff) | |
download | bind9-upstream.tar.xz bind9-upstream.zip |
Adding upstream version 1:9.11.5.P4+dfsg.upstream/1%9.11.5.P4+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'bin/tests/system/masterformat/ns1')
-rwxr-xr-x | bin/tests/system/masterformat/ns1/compile.sh | 32 | ||||
-rw-r--r-- | bin/tests/system/masterformat/ns1/example.db | 56 | ||||
-rw-r--r-- | bin/tests/system/masterformat/ns1/large.db.in | 20 | ||||
-rw-r--r-- | bin/tests/system/masterformat/ns1/named.conf.in | 86 | ||||
-rw-r--r-- | bin/tests/system/masterformat/ns1/signed.db | 27 |
5 files changed, 221 insertions, 0 deletions
diff --git a/bin/tests/system/masterformat/ns1/compile.sh b/bin/tests/system/masterformat/ns1/compile.sh new file mode 100755 index 0000000..b85b8d2 --- /dev/null +++ b/bin/tests/system/masterformat/ns1/compile.sh @@ -0,0 +1,32 @@ +# Copyright (C) Internet Systems Consortium, Inc. ("ISC") +# +# 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 http://mozilla.org/MPL/2.0/. +# +# See the COPYRIGHT file distributed with this work for additional +# information regarding copyright ownership. + +SYSTEMTESTTOP=../.. +. $SYSTEMTESTTOP/conf.sh + +../named-compilezone -D -F raw -o example.db.raw example \ + example.db > /dev/null 2>&1 +../named-compilezone -D -F map -o ../ns3/example.db.map example \ + example.db > /dev/null 2>&1 +../named-compilezone -D -F map -o ../ns3/dynamic.db.map dynamic \ + example.db > /dev/null 2>&1 +../named-compilezone -D -F raw=1 -o example.db.raw1 example-explicit \ + example.db > /dev/null 2>&1 +../named-compilezone -D -F raw=0 -o example.db.compat example-compat \ + example.db > /dev/null 2>&1 +../named-compilezone -D -F raw -L 3333 -o example.db.serial.raw example \ + example.db > /dev/null 2>&1 +../named-compilezone -D -F raw -o large.db.raw large large.db > /dev/null 2>&1 +../named-compilezone -D -F map -o example.db.map example-map \ + example.db > /dev/null 2>&1 + +$KEYGEN -q -r $RANDFILE signed > /dev/null 2>&1 +$KEYGEN -q -r $RANDFILE -fk signed > /dev/null 2>&1 +$SIGNER -S -f signed.db.signed -o signed signed.db > /dev/null 2>&1 +../named-compilezone -D -F map -o signed.db.map signed signed.db.signed > /dev/null 2>&1 diff --git a/bin/tests/system/masterformat/ns1/example.db b/bin/tests/system/masterformat/ns1/example.db new file mode 100644 index 0000000..b8e3247 --- /dev/null +++ b/bin/tests/system/masterformat/ns1/example.db @@ -0,0 +1,56 @@ +; Copyright (C) Internet Systems Consortium, Inc. ("ISC") +; +; 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 http://mozilla.org/MPL/2.0/. +; +; See the COPYRIGHT file distributed with this work for additional +; information regarding copyright ownership. + +$TTL 1D + +@ IN SOA ns hostmaster ( + 1 + 3600 + 1800 + 1814400 + 3 + ) + NS ns +ns A 10.53.0.1 +mx MX 10 mail +a A 10.53.0.1 + A 10.53.0.2 +aaaa AAAA 2001:db8::53 +cname CNAME cname-target +dname DNAME dname-target +txt TXT "this is text" + +;; +;; we are not testing DNSSEC behavior, so we don't care about the semantics +;; of the following records. +dnskey 300 DNSKEY 256 3 1 ( + AQPTpWyReB/e9Ii6mVGnakS8hX2zkh/iUYAg + +Ge4noWROpTWOIBvm76zeJPWs4Zfqa1IsswD + Ix5Mqeg0zwclz59uecKsKyx5w9IhtZ8plc4R + b9VIE5x7KNHAYTvTO5d4S8M= + ) +ds 300 DS 30795 1 1 ( + 310D27F4D82C1FC2400704EA9939FE6E1CEA + A3B9 ) +cdnskey 300 CDNSKEY 256 3 1 ( + AQPTpWyReB/e9Ii6mVGnakS8hX2zkh/iUYAg + +Ge4noWROpTWOIBvm76zeJPWs4Zfqa1IsswD + Ix5Mqeg0zwclz59uecKsKyx5w9IhtZ8plc4R + b9VIE5x7KNHAYTvTO5d4S8M= + ) +cds 300 CDS 30795 1 1 ( + 310D27F4D82C1FC2400704EA9939FE6E1CEA + A3B9 ) +nsec 600 NSEC nsecnext NS DS RRSIG NSEC +rrsig 300 RRSIG SOA 1 0 300 20050714214747 ( + 20050614214747 30795 . + yi/RRPAQmn6rnjDQaCqVValBa+ICF00ZldKf + ZSDaoew5mMUh83DlrrPPNeAxrzMSNzDGlJ6P + fdyIFgzPn/CvthF4kjBUAiJTp4r2zhlaUJQ+ + QFo+drYXYgVJo6aA36fj ) diff --git a/bin/tests/system/masterformat/ns1/large.db.in b/bin/tests/system/masterformat/ns1/large.db.in new file mode 100644 index 0000000..b30b456 --- /dev/null +++ b/bin/tests/system/masterformat/ns1/large.db.in @@ -0,0 +1,20 @@ +; Copyright (C) Internet Systems Consortium, Inc. ("ISC") +; +; 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 http://mozilla.org/MPL/2.0/. +; +; See the COPYRIGHT file distributed with this work for additional +; information regarding copyright ownership. + +$TTL 1D + +@ IN SOA ns hostmaster ( + 1 + 3600 + 1800 + 1814400 + 3 + ) + NS ns +ns A 10.53.0.1 diff --git a/bin/tests/system/masterformat/ns1/named.conf.in b/bin/tests/system/masterformat/ns1/named.conf.in new file mode 100644 index 0000000..e986041 --- /dev/null +++ b/bin/tests/system/masterformat/ns1/named.conf.in @@ -0,0 +1,86 @@ +/* + * Copyright (C) Internet Systems Consortium, Inc. ("ISC") + * + * 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 http://mozilla.org/MPL/2.0/. + * + * See the COPYRIGHT file distributed with this work for additional + * information regarding copyright ownership. + */ + +// NS1 + +options { + pid-file "named.pid"; + listen-on port @PORT@ { 10.53.0.1; }; + port @PORT@; + listen-on-v6 { none; }; + recursion no; + notify no; + dnssec-enable yes; + session-keyfile "session.key"; + servfail-ttl 0; +}; + +key rndc_key { + secret "1234abcd8765"; + algorithm hmac-sha256; +}; + +controls { + inet 10.53.0.1 port @CONTROLPORT@ allow { any; } keys { rndc_key; }; +}; + +zone "example" { + type master; + masterfile-format raw; + file "example.db.raw"; +}; + +zone "compat-example" { + type master; + masterfile-format raw; + file "example.db.compat"; +}; + +zone "transfer1" { + type master; + file "example.db"; + allow-transfer { any; }; +}; + +zone "transfer2" { + type master; + file "example.db"; + allow-transfer { any; }; +}; + +zone "transfer3" { + type master; + file "example.db"; + allow-transfer { any; }; +}; + +zone "transfer4" { + type master; + file "example.db"; + allow-transfer { any; }; +}; + + +zone "large" { + type master; + file "large.db.raw"; + masterfile-format raw; + allow-transfer { any; }; +}; + +zone "signed" { + type master; + file "signed.db.map"; + masterfile-format map; + allow-transfer { any; }; + update-policy local; + auto-dnssec maintain; +}; diff --git a/bin/tests/system/masterformat/ns1/signed.db b/bin/tests/system/masterformat/ns1/signed.db new file mode 100644 index 0000000..20fd00e --- /dev/null +++ b/bin/tests/system/masterformat/ns1/signed.db @@ -0,0 +1,27 @@ +; Copyright (C) Internet Systems Consortium, Inc. ("ISC") +; +; 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 http://mozilla.org/MPL/2.0/. +; +; See the COPYRIGHT file distributed with this work for additional +; information regarding copyright ownership. + +$TTL 1D + +@ IN SOA ns hostmaster ( + 1 + 3600 + 1800 + 1814400 + 3 + ) + NS ns +ns A 10.53.0.1 +mx MX 10 mail +a A 10.53.0.1 + A 10.53.0.2 +aaaa AAAA 2001:db8::53 +cname CNAME cname-target +dname DNAME dname-target +txt TXT "this is text" |