From 45d6379135504814ab723b57f0eb8be23393a51d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 09:24:22 +0200 Subject: Adding upstream version 1:9.16.44. Signed-off-by: Daniel Baumann --- bin/tests/system/masterformat/ns1/compile.sh | 36 ++++++++++ bin/tests/system/masterformat/ns1/example.db | 58 +++++++++++++++++ bin/tests/system/masterformat/ns1/large.db.in | 22 +++++++ bin/tests/system/masterformat/ns1/named.conf.in | 87 +++++++++++++++++++++++++ bin/tests/system/masterformat/ns1/signed.db | 29 +++++++++ 5 files changed, 232 insertions(+) create mode 100755 bin/tests/system/masterformat/ns1/compile.sh create mode 100644 bin/tests/system/masterformat/ns1/example.db create mode 100644 bin/tests/system/masterformat/ns1/large.db.in create mode 100644 bin/tests/system/masterformat/ns1/named.conf.in create mode 100644 bin/tests/system/masterformat/ns1/signed.db (limited to 'bin/tests/system/masterformat/ns1') diff --git a/bin/tests/system/masterformat/ns1/compile.sh b/bin/tests/system/masterformat/ns1/compile.sh new file mode 100755 index 0000000..6626c17 --- /dev/null +++ b/bin/tests/system/masterformat/ns1/compile.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +# 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. + +# shellcheck source=conf.sh +. "$SYSTEMTESTTOP/conf.sh" + +$CHECKZONE -D -F raw -o example.db.raw example \ + example.db > /dev/null 2>&1 +$CHECKZONE -D -F map -o ../ns3/example.db.map example \ + example.db > /dev/null 2>&1 +$CHECKZONE -D -F map -o ../ns3/dynamic.db.map dynamic \ + example.db > /dev/null 2>&1 +$CHECKZONE -D -F raw=1 -o example.db.raw1 example-explicit \ + example.db > /dev/null 2>&1 +$CHECKZONE -D -F raw=0 -o example.db.compat example-compat \ + example.db > /dev/null 2>&1 +$CHECKZONE -D -F raw -L 3333 -o example.db.serial.raw example \ + example.db > /dev/null 2>&1 +$CHECKZONE -D -F raw -o large.db.raw large large.db > /dev/null 2>&1 +$CHECKZONE -D -F map -o example.db.map example-map \ + example.db > /dev/null 2>&1 + +$KEYGEN -q -a "$DEFAULT_ALGORITHM" -b "$DEFAULT_BITS" -f KSK signed > /dev/null 2>&1 +$KEYGEN -q -a "$DEFAULT_ALGORITHM" -b "$DEFAULT_BITS" signed > /dev/null 2>&1 +$SIGNER -S -f signed.db.signed -o signed signed.db > /dev/null +$CHECKZONE -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..5ca0ae2 --- /dev/null +++ b/bin/tests/system/masterformat/ns1/example.db @@ -0,0 +1,58 @@ +; 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 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 13 ( + TEcpWeW1mJp+OujqyInMbjGRODJIYen/4kMR + wO6zW3RzrvmNIMgFag6G uXofiSwJ6YDeQ0O + 3uhPJsJ7ivpbh+w== + ) +private-dnskey 300 DNSKEY 256 3 253 ( AAo= ) +ds 300 DS 30795 1 1 ( + 310D27F4D82C1FC2400704EA9939FE6E1CEA + A3B9 ) +cdnskey 300 CDNSKEY 256 3 13 ( + TEcpWeW1mJp+OujqyInMbjGRODJIYen/4kMR + wO6zW3RzrvmNIMgFag6G uXofiSwJ6YDeQ0O + 3uhPJsJ7ivpbh+w== + ) +private-cdnskey 300 CDNSKEY 256 3 253 ( AAo= ) +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..5a81863 --- /dev/null +++ b/bin/tests/system/masterformat/ns1/large.db.in @@ -0,0 +1,22 @@ +; 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 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..cc95655 --- /dev/null +++ b/bin/tests/system/masterformat/ns1/named.conf.in @@ -0,0 +1,87 @@ +/* + * 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. + */ + +// NS1 + +options { + pid-file "named.pid"; + listen-on port @PORT@ { 10.53.0.1; }; + port @PORT@; + listen-on-v6 { none; }; + recursion no; + notify no; + 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 primary; + masterfile-format raw; + file "example.db.raw"; +}; + +zone "compat-example" { + type primary; + masterfile-format raw; + file "example.db.compat"; +}; + +zone "transfer1" { + type primary; + file "example.db"; + allow-transfer { any; }; +}; + +zone "transfer2" { + type primary; + file "example.db"; + allow-transfer { any; }; +}; + +zone "transfer3" { + type primary; + file "example.db"; + allow-transfer { any; }; +}; + +zone "transfer4" { + type primary; + file "example.db"; + allow-transfer { any; }; +}; + + +zone "large" { + type primary; + file "large.db.raw"; + masterfile-format raw; + allow-transfer { any; }; +}; + +zone "signed" { + type primary; + 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..55d6fae --- /dev/null +++ b/bin/tests/system/masterformat/ns1/signed.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. + +$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" -- cgit v1.2.3