feat: add full Zonemaster stack with Docker and Spanish UI
- Clone all 5 Zonemaster component repos (LDNS, Engine, CLI, Backend, GUI) - Dockerfile.backend: 8-stage multi-stage build LDNS→Engine→CLI→Backend - Dockerfile.gui: Astro static build served via nginx - docker-compose.yml: backend (internal) + frontend (port 5353) - nginx.conf: root redirects to /es/, /api/ proxied to backend - zonemaster-gui/config.ts: defaultLanguage set to 'es' (Spanish) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
14
zonemaster/test-zone-data/Address-TP/address01/README.md
Normal file
14
zonemaster/test-zone-data/Address-TP/address01/README.md
Normal file
@@ -0,0 +1,14 @@
|
||||
[This directory](.), i.e. the same directory as this README file, holds zone
|
||||
files and configuration files to implement the test zones for the scenarios
|
||||
defined in [ADDRESS01 test scenario specification].
|
||||
|
||||
For these test zones the following files are found in [this directory]:
|
||||
* Zone files for `address01.xa` and other related zones;
|
||||
* CoreDNS configuration file;
|
||||
* Output from `zonemaster-cli` on all test scenarios in
|
||||
[Address01 Test Zones Output].
|
||||
|
||||
[Address01 Test Zones Output]: ./test-zones-output.md
|
||||
[Address01 test scenario specification]: ../../../docs/public/specifications/test-zones/Address-TP/address01.md
|
||||
[This directory]: .
|
||||
|
||||
10
zonemaster/test-zone-data/Address-TP/address01/address01.cfg
Normal file
10
zonemaster/test-zone-data/Address-TP/address01/address01.cfg
Normal file
@@ -0,0 +1,10 @@
|
||||
# address01.xa
|
||||
address01.xa:53 {
|
||||
bind 127.11.1.21 # ns1
|
||||
bind fda1:b2:c3:0:127:11:1:21 # ns1
|
||||
bind 127.11.1.22 # ns2
|
||||
bind fda1:b2:c3:0:127:11:1:22 # ns2
|
||||
log
|
||||
file Address-TP/address01/address01.xa.zone address01.xa
|
||||
}
|
||||
|
||||
100
zonemaster/test-zone-data/Address-TP/address01/address01.xa.zone
Normal file
100
zonemaster/test-zone-data/Address-TP/address01/address01.xa.zone
Normal file
@@ -0,0 +1,100 @@
|
||||
$ORIGIN address01.xa. ; Must end with "."
|
||||
$TTL 3600
|
||||
|
||||
@ SOA ns1 admin. (
|
||||
2025111300 ; serial
|
||||
6h ; refresh
|
||||
1h ; retry
|
||||
1w ; expire
|
||||
1d ) ; minimum
|
||||
|
||||
NS ns1
|
||||
NS ns2
|
||||
|
||||
ns1 A 127.11.1.21
|
||||
ns1 AAAA fda1:b2:c3:0:127:11:1:21
|
||||
ns2 A 127.11.1.22
|
||||
ns2 AAAA fda1:b2:c3:0:127:11:1:22
|
||||
|
||||
$ORIGIN good-1.address01.xa.
|
||||
@ NS ns1
|
||||
@ NS ns2
|
||||
ns1 A 192.36.148.17 ; i.root-servers.net.
|
||||
ns1 AAAA 2001:7fe::53 ; i.root-servers.net.
|
||||
ns2 A 192.175.48.1 ; Direct Delegation AS112 Service (192.175.48.0/24)
|
||||
ns2 AAAA 64:ff9b::1 ; IPv4-IPv6 Translat. (64:ff9b::/96)
|
||||
|
||||
$ORIGIN mixed-local-doc-1.address01.xa.
|
||||
@ NS ns1
|
||||
@ NS ns2
|
||||
ns1 A 192.168.11.31 ; Private-Use [RFC1918]
|
||||
ns1 AAAA 2001:7fe::53 ; i.root-servers.net.
|
||||
ns2 A 192.36.148.17 ; i.root-servers.net.
|
||||
ns2 AAAA 2001:db8::127:11:1:32 ; Documentation [RFC3849]
|
||||
|
||||
$ORIGIN mixed-local-doc-2.address01.xa.
|
||||
@ NS ns1
|
||||
@ NS ns2
|
||||
ns1 A 192.0.2.31 ; Documentation (TEST-NET-1) [RFC5737]
|
||||
ns1 AAAA 2001:7fe::53 ; i.root-servers.net.
|
||||
ns2 A 192.58.128.30 ; j.root-servers.net.
|
||||
ns2 AAAA fc00::127:11:1:32 ; Unique-Local [RFC4193] [RFC8190]
|
||||
|
||||
$ORIGIN mixed-doc-other-1.address01.xa.
|
||||
@ NS ns1
|
||||
@ NS ns2
|
||||
ns1 A 198.51.100.31 ; Documentation (TEST-NET-2) [RFC5737]
|
||||
ns1 AAAA 2001:7fe::53 ; i.root-servers.net.
|
||||
ns2 A 192.58.128.30 ; j.root-servers.net.
|
||||
ns2 AAAA 64:ff9b:1::127:11:1:32 ; IPv4-IPv6 Translat. [RFC8215]
|
||||
|
||||
$ORIGIN mixed-doc-other-2.address01.xa.
|
||||
@ NS ns1
|
||||
@ NS ns2
|
||||
ns1 A 240.0.0.31 ; Reserved [RFC1112]
|
||||
ns1 AAAA 2001:7fe::53 ; i.root-servers.net.
|
||||
ns2 A 192.58.128.30 ; j.root-servers.net.
|
||||
ns2 AAAA 3fff::127:11:1:32 ; Documentation [RFC9637]
|
||||
|
||||
$ORIGIN mixed-local-other-1.address01.xa.
|
||||
@ NS ns1
|
||||
@ NS ns2
|
||||
ns1 A 169.254.0.31 ; Link Local [RFC3927]
|
||||
ns1 AAAA 2001:7fe::53 ; i.root-servers.net.
|
||||
ns2 A 192.58.128.30 ; j.root-servers.net.
|
||||
ns2 AAAA 2001:2::127:11:1:32 ; Benchmarking [RFC5180][RFC Errata 1752]
|
||||
|
||||
$ORIGIN mixed-local-other-2.address01.xa.
|
||||
@ NS ns1
|
||||
@ NS ns2
|
||||
ns1 A 198.18.0.31 ; Benchmarking [RFC2544]
|
||||
ns1 AAAA 2001:7fe::53 ; i.root-servers.net.
|
||||
ns2 A 192.58.128.30 ; j.root-servers.net.
|
||||
ns2 AAAA fc00::127:11:1:32 ; Unique-Local [RFC4193] [RFC8190]
|
||||
|
||||
$ORIGIN mixed-all-1.address01.xa.
|
||||
@ NS ns1
|
||||
@ NS ns2
|
||||
ns1 A 172.16.0.31 ; Private-Use [RFC1918]
|
||||
ns1 AAAA 2001:7fe::53 ; i.root-servers.net.
|
||||
ns2 A 203.0.113.32 ; Documentation (TEST-NET-3) [RFC5737]
|
||||
ns2 AAAA 2002::127:11:1:32 ; 6to4 [RFC3056]
|
||||
|
||||
$ORIGIN mixed-all-2.address01.xa.
|
||||
@ NS ns1
|
||||
@ NS ns2
|
||||
ns1 A 198.18.0.31 ; Benchmarking [RFC2544] (RE-USED)
|
||||
ns1 AAAA fe80::127:11:1:31 ; Link-Local Unicast [RFC4291]
|
||||
ns2 A 192.58.128.30 ; j.root-servers.net.
|
||||
ns2 AAAA 2001:db8::127:11:1:32 ; Documentation [RFC3849] (RE-USED)
|
||||
|
||||
$ORIGIN all-non-reachable.address01.xa.
|
||||
@ NS ns1
|
||||
@ NS ns2
|
||||
@ NS ns3
|
||||
ns1 A 10.0.0.31 ; Private-Use [RFC1918]
|
||||
ns1 AAAA 2001:2::127:11:1:31 ; Benchmarking [RFC5180][RFC Errata 1752]
|
||||
ns2 A 203.0.113.32 ; Documentation (TEST-NET-3) [RFC5737]
|
||||
ns2 AAAA fc00::127:11:1:32 ; Unique-Local [RFC4193][RFC8190] (RE-USED)
|
||||
ns3 A 192.0.0.33 ; IETF Protocol Assignments [RFC6890]
|
||||
ns3 AAAA 3fff::127:11:1:33 ; Documentation [RFC9637]
|
||||
@@ -0,0 +1,215 @@
|
||||
# Address01 Test Zones Output
|
||||
|
||||
# Table of contents
|
||||
* [Introduction](#introduction)
|
||||
* [All message tags](#all-message-tags)
|
||||
* [All scenarios](#all-scenarios)
|
||||
* [zonemaster-cli commands and their output for each test scenario](#zonemaster-cli-command-and-their-output-for-each-test-scenario)
|
||||
|
||||
## Introduction
|
||||
|
||||
In this file the output of running `zonemaster-cli` for every test zone is
|
||||
found. This file is created during the development of the test zones and should
|
||||
be updated as the implementation of the test case or the test scenarios or test
|
||||
zones are updated or corrected.
|
||||
|
||||
During development and any update this document serves as tracking and log tool.
|
||||
It also serves as a template for future development of test zones for
|
||||
scenarios for other test cases.
|
||||
|
||||
## All message tags
|
||||
|
||||
* A01_ADDR_NOT_GLOBALLY_REACHABLE
|
||||
* A01_DOCUMENTATION_ADDR
|
||||
* A01_GLOBALLY_REACHABLE_ADDR
|
||||
* A01_LOCAL_USE_ADDR
|
||||
* A01_NO_GLOBALLY_REACHABLE_ADDR
|
||||
* A01_NO_NAME_SERVERS_FOUND
|
||||
|
||||
## All scenarios
|
||||
|
||||
| Scenario name | Zone name |
|
||||
|:---------------------|:--------------------------------------|
|
||||
| GOOD-1 | good-1.address01.xa |
|
||||
| MIXED-LOCAL-DOC-1 | mixed-local-doc-1.address01.xa |
|
||||
| MIXED-LOCAL-DOC-2 | mixed-local-doc-2.address01.xa |
|
||||
| MIXED-LOCAL-OTHER-1 | mixed-doc-other-1.address01.xa |
|
||||
| MIXED-LOCAL-OTHER-2 | mixed-doc-other-2.address01.xa |
|
||||
| MIXED-DOC-OTHER-1 | mixed-local-other-1.address01.xa |
|
||||
| MIXED-DOC-OTHER-2 | mixed-local-other-2.address01.xa |
|
||||
| MIXED-ALL-1 | mixed-all-1.address01.xa |
|
||||
| MIXED-ALL-2 | mixed-all-2.address01.xa |
|
||||
| ALL-NON-REACHABLE | all-non-reachable.address01.xa |
|
||||
| NO-NAME-SERVERS | no-name-servers.address01.xa |
|
||||
|
||||
|
||||
## zonemaster-cli commands and their output for each test scenario
|
||||
|
||||
For this test case it is only meaningful to test the test zones with
|
||||
`--level=info --test=address01`. All commands are run from the same directory as
|
||||
this file is in.
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:--------------|:----------------------------|:-----------------------|
|
||||
| GOOD-1 | A01_GLOBALLY_REACHABLE_ADDR | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --show-testcase --level INFO --test address01 --hints ../../COMMON/hintfile --raw good-1.address01.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v8.0.0
|
||||
10.09 INFO Address01 A01_GLOBALLY_REACHABLE_ADDR ns_list=ns1.good-1.address01.xa/192.36.148.17;ns1.good-1.address01.xa/2001:7fe::53;ns2.good-1.address01.xa/192.175.48.1;ns2.good-1.address01.xa/64:ff9b::1
|
||||
```
|
||||
--> OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:------------------|:------------------------------------------------------------------------|:-----------------------|
|
||||
| MIXED-LOCAL-DOC-1 | A01_LOCAL_USE_ADDR, A01_DOCUMENTATION_ADDR, A01_GLOBALLY_REACHABLE_ADDR | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
```
|
||||
$ zonemaster-cli --show-testcase --level INFO --test address01 --hints ../../COMMON/hintfile --raw mixed-local-doc-1.address01.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v8.0.0
|
||||
20.08 INFO Address01 A01_GLOBALLY_REACHABLE_ADDR ns_list=ns1.mixed-local-doc-1.address01.xa/2001:7fe::53;ns2.mixed-local-doc-1.address01.xa/192.36.148.17
|
||||
20.08 ERROR Address01 A01_DOCUMENTATION_ADDR ns_list=ns2.mixed-local-doc-1.address01.xa/2001:db8::127:11:1:32
|
||||
20.08 ERROR Address01 A01_LOCAL_USE_ADDR ns_list=ns1.mixed-local-doc-1.address01.xa/192.168.11.31
|
||||
```
|
||||
--> OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:------------------|:------------------------------------------------------------------------|:-----------------------|
|
||||
| MIXED-LOCAL-DOC-2 | A01_LOCAL_USE_ADDR, A01_DOCUMENTATION_ADDR, A01_GLOBALLY_REACHABLE_ADDR | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --show-testcase --level INFO --test address01 --hints ../../COMMON/hintfile --raw mixed-local-doc-2.address01.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v8.0.0
|
||||
20.07 INFO Address01 A01_GLOBALLY_REACHABLE_ADDR ns_list=ns1.mixed-local-doc-2.address01.xa/2001:7fe::53;ns2.mixed-local-doc-2.address01.xa/192.58.128.30
|
||||
20.07 ERROR Address01 A01_DOCUMENTATION_ADDR ns_list=ns1.mixed-local-doc-2.address01.xa/192.0.2.31
|
||||
20.07 ERROR Address01 A01_LOCAL_USE_ADDR ns_list=ns2.mixed-local-doc-2.address01.xa/fc00::127:11:1:32
|
||||
```
|
||||
--> OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:--------------------|:---------------------------------------------------------------------------------|:-----------------------|
|
||||
| MIXED-LOCAL-OTHER-1 | A01_LOCAL_USE_ADDR, A01_ADDR_NOT_GLOBALLY_REACHABLE, A01_GLOBALLY_REACHABLE_ADDR | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --show-testcase --level INFO --test address01 --hints ../../COMMON/hintfile --raw mixed-local-other-1.address01.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v8.0.0
|
||||
20.08 INFO Address01 A01_GLOBALLY_REACHABLE_ADDR ns_list=ns1.mixed-local-other-1.address01.xa/2001:7fe::53;ns2.mixed-local-other-1.address01.xa/192.58.128.30
|
||||
20.08 ERROR Address01 A01_LOCAL_USE_ADDR ns_list=ns1.mixed-local-other-1.address01.xa/169.254.0.31
|
||||
20.08 ERROR Address01 A01_ADDR_NOT_GLOBALLY_REACHABLE ns_list=ns2.mixed-local-other-1.address01.xa/2001:2::127:11:1:32
|
||||
```
|
||||
--> OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:--------------------|:---------------------------------------------------------------------------------|:-----------------------|
|
||||
| MIXED-LOCAL-OTHER-2 | A01_LOCAL_USE_ADDR, A01_ADDR_NOT_GLOBALLY_REACHABLE, A01_GLOBALLY_REACHABLE_ADDR | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --show-testcase --level INFO --test address01 --hints ../../COMMON/hintfile --raw mixed-local-other-2.address01.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v8.0.0
|
||||
20.08 INFO Address01 A01_GLOBALLY_REACHABLE_ADDR ns_list=ns1.mixed-local-other-2.address01.xa/2001:7fe::53;ns2.mixed-local-other-2.address01.xa/192.58.128.30
|
||||
20.08 ERROR Address01 A01_LOCAL_USE_ADDR ns_list=ns2.mixed-local-other-2.address01.xa/fc00::127:11:1:32
|
||||
20.08 ERROR Address01 A01_ADDR_NOT_GLOBALLY_REACHABLE ns_list=ns1.mixed-local-other-2.address01.xa/198.18.0.31
|
||||
```
|
||||
--> OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:------------------|:-------------------------------------------------------------------------------------|:-----------------------|
|
||||
| MIXED-DOC-OTHER-1 | A01_DOCUMENTATION_ADDR, A01_ADDR_NOT_GLOBALLY_REACHABLE, A01_GLOBALLY_REACHABLE_ADDR | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --show-testcase --level INFO --test address01 --hints ../../COMMON/hintfile --raw mixed-doc-other-1.address01.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v8.0.0
|
||||
20.08 INFO Address01 A01_GLOBALLY_REACHABLE_ADDR ns_list=ns1.mixed-doc-other-1.address01.xa/2001:7fe::53;ns2.mixed-doc-other-1.address01.xa/192.58.128.30
|
||||
20.08 ERROR Address01 A01_DOCUMENTATION_ADDR ns_list=ns1.mixed-doc-other-1.address01.xa/198.51.100.31
|
||||
20.08 ERROR Address01 A01_ADDR_NOT_GLOBALLY_REACHABLE ns_list=ns2.mixed-doc-other-1.address01.xa/64:ff9b:1:0:127:11:1:32
|
||||
```
|
||||
--> OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:------------------|:-------------------------------------------------------------------------------------|:-----------------------|
|
||||
| MIXED-DOC-OTHER-2 | A01_DOCUMENTATION_ADDR, A01_ADDR_NOT_GLOBALLY_REACHABLE, A01_GLOBALLY_REACHABLE_ADDR | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --show-testcase --level INFO --test address01 --hints ../../COMMON/hintfile --raw mixed-doc-other-2.address01.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v8.0.0
|
||||
20.08 INFO Address01 A01_GLOBALLY_REACHABLE_ADDR ns_list=ns1.mixed-doc-other-2.address01.xa/2001:7fe::53;ns2.mixed-doc-other-2.address01.xa/192.58.128.30
|
||||
20.08 ERROR Address01 A01_DOCUMENTATION_ADDR ns_list=ns2.mixed-doc-other-2.address01.xa/3fff::127:11:1:32
|
||||
20.08 ERROR Address01 A01_ADDR_NOT_GLOBALLY_REACHABLE ns_list=ns1.mixed-doc-other-2.address01.xa/240.0.0.31
|
||||
```
|
||||
--> OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:--------------|:---------------------------------------------------------------------------------------------------------|:-----------------------|
|
||||
| MIXED-ALL-1 | A01_ADDR_NOT_GLOBALLY_REACHABLE, A01_DOCUMENTATION_ADDR, A01_LOCAL_USE_ADDR, A01_GLOBALLY_REACHABLE_ADDR | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --show-testcase --level INFO --test address01 --hints ../../COMMON/hintfile --raw mixed-all-1.address01.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v8.0.0
|
||||
30.08 INFO Address01 A01_GLOBALLY_REACHABLE_ADDR ns_list=ns1.mixed-all-1.address01.xa/2001:7fe::53
|
||||
30.08 ERROR Address01 A01_DOCUMENTATION_ADDR ns_list=ns2.mixed-all-1.address01.xa/203.0.113.32
|
||||
30.08 ERROR Address01 A01_LOCAL_USE_ADDR ns_list=ns1.mixed-all-1.address01.xa/172.16.0.31
|
||||
30.08 ERROR Address01 A01_ADDR_NOT_GLOBALLY_REACHABLE ns_list=ns2.mixed-all-1.address01.xa/2002::127:11:1:32
|
||||
```
|
||||
--> OK
|
||||
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:--------------|:---------------------------------------------------------------------------------------------------------|:-----------------------|
|
||||
| MIXED-ALL-2 | A01_ADDR_NOT_GLOBALLY_REACHABLE, A01_DOCUMENTATION_ADDR, A01_LOCAL_USE_ADDR, A01_GLOBALLY_REACHABLE_ADDR | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --show-testcase --level INFO --test address01 --hints ../../COMMON/hintfile --raw mixed-all-2.address01.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v8.0.0
|
||||
30.09 INFO Address01 A01_GLOBALLY_REACHABLE_ADDR ns_list=ns2.mixed-all-2.address01.xa/192.58.128.30
|
||||
30.09 ERROR Address01 A01_DOCUMENTATION_ADDR ns_list=ns2.mixed-all-2.address01.xa/2001:db8::127:11:1:32
|
||||
30.09 ERROR Address01 A01_LOCAL_USE_ADDR ns_list=ns1.mixed-all-2.address01.xa/fe80::127:11:1:31
|
||||
30.09 ERROR Address01 A01_ADDR_NOT_GLOBALLY_REACHABLE ns_list=ns1.mixed-all-2.address01.xa/198.18.0.31
|
||||
```
|
||||
--> OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:------------------|:------------------------------------------------------------------------------------------------------------|:-----------------------|
|
||||
| ALL-NON-REACHABLE | A01_ADDR_NOT_GLOBALLY_REACHABLE, A01_LOCAL_USE_ADDR, A01_DOCUMENTATION_ADDR, A01_NO_GLOBALLY_REACHABLE_ADDR | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --show-testcase --level INFO --test address01 --hints ../../COMMON/hintfile --raw all-non-reachable.address01.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v8.0.0
|
||||
60.11 ERROR Address01 A01_NO_GLOBALLY_REACHABLE_ADDR
|
||||
60.11 ERROR Address01 A01_DOCUMENTATION_ADDR ns_list=ns2.all-non-reachable.address01.xa/203.0.113.32;ns3.all-non-reachable.address01.xa/3fff::127:11:1:33
|
||||
60.11 ERROR Address01 A01_LOCAL_USE_ADDR ns_list=ns1.all-non-reachable.address01.xa/10.0.0.31;ns2.all-non-reachable.address01.xa/fc00::127:11:1:32
|
||||
60.11 ERROR Address01 A01_ADDR_NOT_GLOBALLY_REACHABLE ns_list=ns1.all-non-reachable.address01.xa/2001:2::127:11:1:31;ns3.all-non-reachable.address01.xa/192.0.0.33
|
||||
```
|
||||
--> OK
|
||||
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:----------------|:--------------------------|:-----------------------|
|
||||
| NO_NAME_SERVERS | A01_NO_NAME_SERVERS_FOUND | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --show-testcase --level INFO --test address01 --hints ../../COMMON/hintfile --raw no-name-servers.address01.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v8.0.0
|
||||
0.04 CRITICAL Address01 A01_NO_NAME_SERVERS_FOUND
|
||||
```
|
||||
--> OK
|
||||
@@ -0,0 +1,83 @@
|
||||
$ORIGIN 3.0.0.0.1.1.0.0.7.2.1.0.0.0.0.0.3.c.0.0.2.b.0.0.1.a.d.f.ip6.arpa. ; Must end with "."
|
||||
$TTL 3600
|
||||
|
||||
@ SOA ns1 admin. (
|
||||
2025022400 ; serial
|
||||
6h ; refresh
|
||||
1h ; retry
|
||||
1w ; expire
|
||||
1d ) ; minimum
|
||||
|
||||
NS ns1.address03.xa.
|
||||
NS ns2.address03.xa.
|
||||
;;;
|
||||
;;; Name servers for parent zone
|
||||
;;;
|
||||
1.2.0.0 PTR ns1.address03.xa.
|
||||
2.2.0.0 PTR ns2.address03.xa.
|
||||
|
||||
;;;
|
||||
;;; Name servers for child (scenario) zones
|
||||
;;;
|
||||
|
||||
;; For the “happy path”.
|
||||
1.3.0.0 PTR ns1.child.address03.xa.
|
||||
|
||||
;; One more for the “happy path”.
|
||||
2.3.0.0 PTR ns2.child.address03.xa.
|
||||
|
||||
;; Multiple PTR records, among which one matches the actual name server name.
|
||||
;; For the curious: the languages used are English, French, Swedish, German,
|
||||
;; Dutch and Esperanto.
|
||||
3.3.0.0 PTR ns3.child.address03.xa.
|
||||
PTR name-server-three.child.address03.xa.
|
||||
PTR serveur-de-noms-trois.child.address03.xa.
|
||||
PTR namnsevrar-tre.child.address03.xa.
|
||||
PTR nameserver-drei.child.address03.xa.
|
||||
PTR naamserver-drie.child.address03.xa.
|
||||
PTR nomservilo-tri.child.address03.xa.
|
||||
|
||||
;; Empty non-terminal.
|
||||
_.4.3.0.0 TXT "To make the parent node an empty non-terminal"
|
||||
|
||||
|
||||
;; Nonexistent node. This name server has no reverse DNS at all.
|
||||
; 5.3.0.0 PTR nothing-here.invalid.
|
||||
|
||||
;; This name server has reverse DNS for IPv6 only, none for IPv4.
|
||||
6.3.0.0 PTR ns6.child.address03.xa.
|
||||
|
||||
;; Nonexistent node. This name server has reverse DNS for IPv4 only, none for IPv6.
|
||||
; 7.3.0.0 PTR ns7.child.address03.xa.
|
||||
|
||||
;; Non-matching name.
|
||||
8.3.0.0 PTR a-naughty-nameserver.child.address03.xa.
|
||||
|
||||
;; Multiple non-matching names.
|
||||
9.3.0.0 PTR non-matching-set-1.child.address03.xa.
|
||||
PTR non-matching-set-2.child.address03.xa.
|
||||
|
||||
;; An alias to a node with a good PTR record set (which is legal, and can
|
||||
;; happen with classless IN-ADDR.ARPA delegation, as in RFC 2317).
|
||||
0.4.0.0 CNAME 0-4-0-0.alias
|
||||
0-4-0-0.alias PTR ns10.child.address03.xa.
|
||||
|
||||
;; Another good alias, but the target is in another zone.
|
||||
1.4.0.0 CNAME 1-4-0-0.reverse-aliases.address03.xa.
|
||||
|
||||
;; A dangling alias (pointing to a nonexistent node).
|
||||
2.4.0.0 CNAME dangling.alias
|
||||
|
||||
;; An illegal alias (with more than one CNAME RR).
|
||||
;; NOTE: The resolver MUST NOT attempt to follow any of the CNAME resource records!
|
||||
3.4.0.0 CNAME illegal1.alias
|
||||
CNAME illegal2.alias
|
||||
|
||||
;; Queries for the following name must be dropped.
|
||||
; 4.4.0.0 PTR ns14.child.address03.xa.
|
||||
|
||||
;; Queries for the following name must fail with RCODE SERVFAIL.
|
||||
; 5.4.0.0 PTR ns15.child.address03.xa.
|
||||
|
||||
illegal1.alias PTR ns13.child.address03.xa.
|
||||
illegal2.alias PTR ns13.child.address03.xa.
|
||||
@@ -0,0 +1,83 @@
|
||||
$ORIGIN 3.11.127.in-addr.arpa. ; Must end with "."
|
||||
$TTL 3600
|
||||
|
||||
@ SOA ns1 admin. (
|
||||
2025022400 ; serial
|
||||
6h ; refresh
|
||||
1h ; retry
|
||||
1w ; expire
|
||||
1d ) ; minimum
|
||||
|
||||
NS ns1.address03.xa.
|
||||
NS ns2.address03.xa.
|
||||
;;;
|
||||
;;; Name servers for parent zone
|
||||
;;;
|
||||
21 PTR ns1.address03.xa.
|
||||
22 PTR ns2.address03.xa.
|
||||
|
||||
;;;
|
||||
;;; Name servers for child (scenario) zones
|
||||
;;;
|
||||
|
||||
;; For the “happy path”.
|
||||
31 PTR ns1.child.address03.xa.
|
||||
|
||||
;; One more for the “happy path”.
|
||||
32 PTR ns2.child.address03.xa.
|
||||
|
||||
;; Multiple PTR records, among which one matches the actual name server name.
|
||||
;; For the curious: the languages used are English, French, Swedish, German,
|
||||
;; Dutch and Esperanto.
|
||||
33 PTR ns3.child.address03.xa.
|
||||
PTR name-server-three.child.address03.xa.
|
||||
PTR serveur-de-noms-trois.child.address03.xa.
|
||||
PTR namnsevrar-tre.child.address03.xa.
|
||||
PTR nameserver-drei.child.address03.xa.
|
||||
PTR naamserver-drie.child.address03.xa.
|
||||
PTR nomservilo-tri.child.address03.xa.
|
||||
|
||||
;; Empty non-terminal.
|
||||
_.34 TXT "To make the parent node an empty non-terminal"
|
||||
|
||||
|
||||
;; Nonexistent node. This name server has no reverse DNS at all.
|
||||
; 35 PTR nothing-here.invalid.
|
||||
|
||||
;; Nonexistent node. This name server has reverse DNS for IPv6 only, none for IPv4.
|
||||
; 36 PTR ns6.child.address03.xa.
|
||||
|
||||
;; This name server has reverse DNS for IPv4 only, none for IPv6.
|
||||
37 PTR ns7.child.address03.xa.
|
||||
|
||||
;; Non-matching name.
|
||||
38 PTR a-naughty-nameserver.child.address03.xa.
|
||||
|
||||
;; Multiple non-matching names.
|
||||
39 PTR non-matching-set-1.child.address03.xa.
|
||||
PTR non-matching-set-2.child.address03.xa.
|
||||
|
||||
;; An alias to a node with a good PTR record set (which is legal, and can
|
||||
;; happen with classless IN-ADDR.ARPA delegation, as in RFC 2317).
|
||||
40 CNAME 40.alias
|
||||
40.alias PTR ns10.child.address03.xa.
|
||||
|
||||
;; Another good alias, but the target is another zone.
|
||||
41 CNAME 41.reverse-aliases.address03.xa.
|
||||
|
||||
;; A dangling alias (pointing to a nonexistent node).
|
||||
42 CNAME dangling.alias
|
||||
|
||||
;; An illegal alias (with more than one CNAME RR).
|
||||
;; NOTE: The resolver MUST NOT attempt to follow any of the CNAME resource records!
|
||||
43 CNAME illegal1.alias
|
||||
CNAME illegal2.alias
|
||||
|
||||
;; Queries for the following name must be dropped.
|
||||
; 44 PTR ns14.child.address03.xa.
|
||||
|
||||
;; Queries for the following name must fail with RCODE SERVFAIL.
|
||||
; 45 PTR ns15.child.address03.xa.
|
||||
|
||||
illegal1.alias PTR ns13.child.address03.xa.
|
||||
illegal2.alias PTR ns13.child.address03.xa.
|
||||
13
zonemaster/test-zone-data/Address-TP/address03/README.md
Normal file
13
zonemaster/test-zone-data/Address-TP/address03/README.md
Normal file
@@ -0,0 +1,13 @@
|
||||
[This directory], i.e. the same directory as this README file, holds zone
|
||||
files and configuration files to implement the test zones for the scenarios
|
||||
defined in [Address03 test scenario specification].
|
||||
|
||||
For these test zones the following files are found in [this directory]:
|
||||
* Zone files for `address03.xa` and other related zones;
|
||||
* CoreDNS configuration file;
|
||||
* Output from `zonemaster-cli` on all test scenarios in
|
||||
[Address03 Test Zones Output].
|
||||
|
||||
[Address03 Test Zones Output]: ./test-zones-output.md
|
||||
[Address03 test scenario specification]: ../../../docs/public/specifications/test-zones/Address-TP/address03.md
|
||||
[This directory]: .
|
||||
185
zonemaster/test-zone-data/Address-TP/address03/address03.cfg
Normal file
185
zonemaster/test-zone-data/Address-TP/address03/address03.cfg
Normal file
@@ -0,0 +1,185 @@
|
||||
# address03.xa
|
||||
address03.xa:53 {
|
||||
bind 127.11.3.21 # ns1
|
||||
bind fda1:b2:c3::127:11:3:21 # ns1
|
||||
bind 127.11.3.22 # ns2
|
||||
bind fda1:b2:c3::127:11:3:22 # ns2
|
||||
log
|
||||
file Address-TP/address03/address03.xa.zone address03.xa
|
||||
}
|
||||
|
||||
# reverse-aliases.address03.xa
|
||||
reverse-aliases.address03.xa:53 {
|
||||
bind 127.11.3.31 # ns1.child
|
||||
bind fda1:b2:c3::127:11:3:31 # ns1.child
|
||||
bind 127.11.3.32 # ns2.child
|
||||
bind fda1:b2:c3::127:11:3:32 # ns2.child
|
||||
log
|
||||
file Address-TP/address03/reverse-aliases.address03.xa.zone reverse-aliases.address03.xa
|
||||
}
|
||||
|
||||
# 3.11.127.in-addr.arpa
|
||||
3.11.127.in-addr.arpa:53 {
|
||||
bind 127.11.3.21 # ns1
|
||||
bind fda1:b2:c3::127:11:3:21 # ns1
|
||||
bind 127.11.3.22 # ns2
|
||||
bind fda1:b2:c3::127:11:3:22 # ns2
|
||||
log
|
||||
file Address-TP/address03/3.11.127.in-addr.arpa.zone 3.11.127.in-addr.arpa
|
||||
|
||||
acl 44.3.11.127.in-addr.arpa {
|
||||
drop
|
||||
}
|
||||
template IN ANY 45.3.11.127.in-addr.arpa {
|
||||
rcode SERVFAIL
|
||||
}
|
||||
}
|
||||
|
||||
# 3.0.0.0.1.1.0.0.7.2.1.0.0.0.0.0.3.c.0.0.2.b.0.0.1.a.d.f.ip6.arpa
|
||||
3.0.0.0.1.1.0.0.7.2.1.0.0.0.0.0.3.c.0.0.2.b.0.0.1.a.d.f.ip6.arpa:53 {
|
||||
bind 127.11.3.21 # ns1
|
||||
bind fda1:b2:c3::127:11:3:21 # ns1
|
||||
bind 127.11.3.22 # ns2
|
||||
bind fda1:b2:c3::127:11:3:22 # ns2
|
||||
log
|
||||
file Address-TP/address03/3.0.0.0.1.1.0.0.7.2.1.0.0.0.0.0.3.c.0.0.2.b.0.0.1.a.d.f.ip6.arpa.zone 3.0.0.0.1.1.0.0.7.2.1.0.0.0.0.0.3.c.0.0.2.b.0.0.1.a.d.f.ip6.arpa
|
||||
|
||||
acl 4.4.0.0.3.0.0.0.1.1.0.0.7.2.1.0.0.0.0.0.3.c.0.0.2.b.0.0.1.a.d.f.ip6.arpa {
|
||||
drop
|
||||
}
|
||||
template IN ANY 5.4.0.0.3.0.0.0.1.1.0.0.7.2.1.0.0.0.0.0.3.c.0.0.2.b.0.0.1.a.d.f.ip6.arpa {
|
||||
rcode SERVFAIL
|
||||
}
|
||||
}
|
||||
|
||||
### ALL-NS-HAVE-PTR-1
|
||||
# all-ns-have-ptr-1.address03.xa.
|
||||
all-ns-have-ptr-1.address03.xa:53 {
|
||||
bind 127.11.3.31 # ns1.child
|
||||
bind fda1:b2:c3::127:11:3:31 # ns1.child
|
||||
bind 127.11.3.32 # ns2.child
|
||||
bind fda1:b2:c3::127:11:3:32 # ns2.child
|
||||
log
|
||||
file Address-TP/address03/all-ns-have-ptr-1.address03.xa.zone all-ns-have-ptr-1.address03.xa
|
||||
}
|
||||
|
||||
### ALL-NS-HAVE-PTR-2
|
||||
# all-ns-have-ptr-2.address03.xa.
|
||||
all-ns-have-ptr-2.address03.xa:53 {
|
||||
bind 127.11.3.31 # ns1.child
|
||||
bind fda1:b2:c3::127:11:3:31 # ns1.child
|
||||
bind 127.11.3.33 # ns3.child
|
||||
bind fda1:b2:c3::127:11:3:33 # ns3.child
|
||||
log
|
||||
file Address-TP/address03/all-ns-have-ptr-2.address03.xa.zone all-ns-have-ptr-2.address03.xa
|
||||
}
|
||||
|
||||
### NO-NS-HAVE-PTR
|
||||
# no-ns-have-ptr.address03.xa.
|
||||
no-ns-have-ptr.address03.xa:53 {
|
||||
bind 127.11.3.34 # ns4.child
|
||||
bind fda1:b2:c3::127:11:3:34 # ns4.child
|
||||
bind 127.11.3.35 # ns5.child
|
||||
bind fda1:b2:c3::127:11:3:35 # ns5.child
|
||||
log
|
||||
file Address-TP/address03/no-ns-have-ptr.address03.xa.zone no-ns-have-ptr.address03.xa
|
||||
}
|
||||
|
||||
### INCOMPLETE-PTR-1
|
||||
# incomplete-ptr-1.address03.xa.
|
||||
incomplete-ptr-1.address03.xa:53 {
|
||||
bind 127.11.3.31 # ns1.child
|
||||
bind fda1:b2:c3::127:11:3:31 # ns1.child
|
||||
bind 127.11.3.36 # ns6.child
|
||||
bind fda1:b2:c3::127:11:3:36 # ns6.child
|
||||
log
|
||||
file Address-TP/address03/incomplete-ptr-1.address03.xa.zone incomplete-ptr-1.address03.xa
|
||||
}
|
||||
|
||||
### INCOMPLETE-PTR-2
|
||||
# incomplete-ptr-2.address03.xa.
|
||||
incomplete-ptr-2.address03.xa:53 {
|
||||
bind 127.11.3.31 # ns1.child
|
||||
bind fda1:b2:c3::127:11:3:31 # ns1.child
|
||||
bind 127.11.3.37 # ns7.child
|
||||
bind fda1:b2:c3::127:11:3:37 # ns7.child
|
||||
log
|
||||
file Address-TP/address03/incomplete-ptr-2.address03.xa.zone incomplete-ptr-2.address03.xa
|
||||
}
|
||||
|
||||
### NON-MATCHING-NAMES
|
||||
# non-matching-names.address03.xa.
|
||||
non-matching-names.address03.xa:53 {
|
||||
bind 127.11.3.38 # ns8.child
|
||||
bind fda1:b2:c3::127:11:3:38 # ns8.child
|
||||
bind 127.11.3.39 # ns9.child
|
||||
bind fda1:b2:c3::127:11:3:39 # ns9.child
|
||||
log
|
||||
file Address-TP/address03/non-matching-names.address03.xa.zone non-matching-names.address03.xa
|
||||
}
|
||||
|
||||
### PTR-IS-GOOD-CNAME-1
|
||||
# ptr-is-good-cname-1.address03.xa.
|
||||
ptr-is-good-cname-1.address03.xa:53 {
|
||||
bind 127.11.3.31 # ns1.child
|
||||
bind fda1:b2:c3::127:11:3:31 # ns1.child
|
||||
bind 127.11.3.40 # ns10.child
|
||||
bind fda1:b2:c3::127:11:3:40 # ns10.child
|
||||
log
|
||||
file Address-TP/address03/ptr-is-good-cname-1.address03.xa.zone ptr-is-good-cname-1.address03.xa
|
||||
}
|
||||
|
||||
### PTR-IS-GOOD-CNAME-2
|
||||
# ptr-is-good-cname-2.address03.xa.
|
||||
ptr-is-good-cname-2.address03.xa:53 {
|
||||
bind 127.11.3.31 # ns1.child
|
||||
bind fda1:b2:c3::127:11:3:31 # ns1.child
|
||||
bind 127.11.3.41 # ns11.child
|
||||
bind fda1:b2:c3::127:11:3:41 # ns11.child
|
||||
log
|
||||
file Address-TP/address03/ptr-is-good-cname-2.address03.xa.zone ptr-is-good-cname-2.address03.xa
|
||||
}
|
||||
|
||||
### PTR-IS-DANGLING-CNAME
|
||||
# ptr-is-dangling-cname.address03.xa.
|
||||
ptr-is-dangling-cname.address03.xa:53 {
|
||||
bind 127.11.3.35 # ns5.child
|
||||
bind fda1:b2:c3::127:11:3:35 # ns5.child
|
||||
bind 127.11.3.42 # ns12.child
|
||||
bind fda1:b2:c3::127:11:3:42 # ns12.child
|
||||
log
|
||||
file Address-TP/address03/ptr-is-dangling-cname.address03.xa.zone ptr-is-dangling-cname.address03.xa
|
||||
}
|
||||
|
||||
### PTR-IS-ILLEGAL-CNAME
|
||||
# ptr-is-illegal-cname.address03.xa.
|
||||
ptr-is-illegal-cname.address03.xa:53 {
|
||||
bind 127.11.3.34 # ns4.child
|
||||
bind fda1:b2:c3::127:11:3:34 # ns4.child
|
||||
bind 127.11.3.43 # ns13.child
|
||||
bind fda1:b2:c3::127:11:3:43 # ns13.child
|
||||
log
|
||||
file Address-TP/address03/ptr-is-illegal-cname.address03.xa.zone ptr-is-illegal-cname.address03.xa
|
||||
}
|
||||
|
||||
### PTR-RESOLUTION-NO-RESPONSE
|
||||
# ptr-resolution-no-response.address03.xa.
|
||||
ptr-resolution-no-response.address03.xa:53 {
|
||||
bind 127.11.3.31 # ns1.child
|
||||
bind fda1:b2:c3::127:11:3:31 # ns1.child
|
||||
bind 127.11.3.44 # ns14.child
|
||||
bind fda1:b2:c3::127:11:3:44 # ns14.child
|
||||
log
|
||||
file Address-TP/address03/ptr-resolution-no-response.address03.xa.zone ptr-resolution-no-response.address03.xa
|
||||
}
|
||||
|
||||
### PTR-RESOLUTION-SERVFAIL
|
||||
# ptr-resolution-servfail.address03.xa.
|
||||
ptr-resolution-servfail.address03.xa:53 {
|
||||
bind 127.11.3.31 # ns1.child
|
||||
bind fda1:b2:c3::127:11:3:31 # ns1.child
|
||||
bind 127.11.3.45 # ns15.child
|
||||
bind fda1:b2:c3::127:11:3:45 # ns15.child
|
||||
log
|
||||
file Address-TP/address03/ptr-resolution-servfail.address03.xa.zone ptr-resolution-servfail.address03.xa
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
$ORIGIN address03.xa. ; Must end with "."
|
||||
$TTL 3600
|
||||
|
||||
@ SOA ns1 admin. (
|
||||
2025022400 ; serial
|
||||
6h ; refresh
|
||||
1h ; retry
|
||||
1w ; expire
|
||||
1d ) ; minimum
|
||||
|
||||
NS ns1
|
||||
NS ns2
|
||||
|
||||
ns1 A 127.11.3.21
|
||||
ns1 AAAA fda1:b2:c3::127:11:3:21
|
||||
ns2 A 127.11.3.22
|
||||
ns2 AAAA fda1:b2:c3::127:11:3:22
|
||||
|
||||
;;;
|
||||
;;; Name servers for child (scenario) zones
|
||||
;;;
|
||||
|
||||
ns1.child A 127.11.3.31
|
||||
ns1.child AAAA fda1:b2:c3::127:11:3:31
|
||||
ns2.child A 127.11.3.32
|
||||
ns2.child AAAA fda1:b2:c3::127:11:3:32
|
||||
ns3.child A 127.11.3.33
|
||||
ns3.child AAAA fda1:b2:c3::127:11:3:33
|
||||
ns4.child A 127.11.3.34
|
||||
ns4.child AAAA fda1:b2:c3::127:11:3:34
|
||||
ns5.child A 127.11.3.35
|
||||
ns5.child AAAA fda1:b2:c3::127:11:3:35
|
||||
ns6.child A 127.11.3.36
|
||||
ns6.child AAAA fda1:b2:c3::127:11:3:36
|
||||
ns7.child A 127.11.3.37
|
||||
ns7.child AAAA fda1:b2:c3::127:11:3:37
|
||||
ns8.child A 127.11.3.38
|
||||
ns8.child AAAA fda1:b2:c3::127:11:3:38
|
||||
ns9.child A 127.11.3.39
|
||||
ns9.child AAAA fda1:b2:c3::127:11:3:39
|
||||
ns10.child A 127.11.3.40
|
||||
ns10.child AAAA fda1:b2:c3::127:11:3:40
|
||||
ns11.child A 127.11.3.41
|
||||
ns11.child AAAA fda1:b2:c3::127:11:3:41
|
||||
ns12.child A 127.11.3.42
|
||||
ns12.child AAAA fda1:b2:c3::127:11:3:42
|
||||
ns13.child A 127.11.3.43
|
||||
ns13.child AAAA fda1:b2:c3::127:11:3:43
|
||||
ns14.child A 127.11.3.44
|
||||
ns14.child AAAA fda1:b2:c3::127:11:3:44
|
||||
ns15.child A 127.11.3.45
|
||||
ns15.child AAAA fda1:b2:c3::127:11:3:45
|
||||
|
||||
;;;
|
||||
;;; Some targets of aliases (CNAMEs) need to be in another zone
|
||||
;;;
|
||||
|
||||
reverse-aliases NS ns1.child
|
||||
reverse-aliases NS ns2.child
|
||||
|
||||
;;;
|
||||
;;; Scenario definitions
|
||||
;;;
|
||||
|
||||
all-ns-have-ptr-1 NS ns1.child
|
||||
all-ns-have-ptr-1 NS ns2.child
|
||||
|
||||
all-ns-have-ptr-2 NS ns1.child
|
||||
all-ns-have-ptr-2 NS ns3.child
|
||||
|
||||
no-ns-have-ptr NS ns4.child
|
||||
no-ns-have-ptr NS ns5.child
|
||||
|
||||
incomplete-ptr-1 NS ns1.child
|
||||
incomplete-ptr-1 NS ns6.child
|
||||
|
||||
incomplete-ptr-2 NS ns1.child
|
||||
incomplete-ptr-2 NS ns7.child
|
||||
|
||||
non-matching-names NS ns8.child
|
||||
non-matching-names NS ns9.child
|
||||
|
||||
ptr-is-good-cname-1 NS ns1.child
|
||||
ptr-is-good-cname-1 NS ns10.child
|
||||
|
||||
ptr-is-good-cname-2 NS ns1.child
|
||||
ptr-is-good-cname-2 NS ns11.child
|
||||
|
||||
ptr-is-dangling-cname NS ns5.child
|
||||
ptr-is-dangling-cname NS ns12.child
|
||||
|
||||
ptr-is-illegal-cname NS ns4.child
|
||||
ptr-is-illegal-cname NS ns13.child
|
||||
|
||||
ptr-resolution-no-response NS ns1.child
|
||||
ptr-resolution-no-response NS ns14.child
|
||||
|
||||
ptr-resolution-servfail NS ns1.child
|
||||
ptr-resolution-servfail NS ns15.child
|
||||
@@ -0,0 +1,12 @@
|
||||
$ORIGIN all-ns-have-ptr-1.address03.xa. ; Must end with "."
|
||||
$TTL 3600
|
||||
|
||||
@ SOA ns1.child.address03.xa. admin. (
|
||||
2025022400 ; serial
|
||||
6h ; refresh
|
||||
1h ; retry
|
||||
1w ; expire
|
||||
1d ) ; minimum
|
||||
|
||||
NS ns1.child.address03.xa.
|
||||
NS ns2.child.address03.xa.
|
||||
@@ -0,0 +1,12 @@
|
||||
$ORIGIN all-ns-have-ptr-2.address03.xa. ; Must end with "."
|
||||
$TTL 3600
|
||||
|
||||
@ SOA ns1.child.address03.xa. admin. (
|
||||
2025022400 ; serial
|
||||
6h ; refresh
|
||||
1h ; retry
|
||||
1w ; expire
|
||||
1d ) ; minimum
|
||||
|
||||
NS ns1.child.address03.xa.
|
||||
NS ns3.child.address03.xa.
|
||||
@@ -0,0 +1,12 @@
|
||||
$ORIGIN incomplete-ptr-1.address03.xa. ; Must end with "."
|
||||
$TTL 3600
|
||||
|
||||
@ SOA ns1.child.address03.xa. admin. (
|
||||
2025022400 ; serial
|
||||
6h ; refresh
|
||||
1h ; retry
|
||||
1w ; expire
|
||||
1d ) ; minimum
|
||||
|
||||
NS ns1.child.address03.xa.
|
||||
NS ns6.child.address03.xa.
|
||||
@@ -0,0 +1,12 @@
|
||||
$ORIGIN incomplete-ptr-2.address03.xa. ; Must end with "."
|
||||
$TTL 3600
|
||||
|
||||
@ SOA ns1.child.address03.xa. admin. (
|
||||
2025022400 ; serial
|
||||
6h ; refresh
|
||||
1h ; retry
|
||||
1w ; expire
|
||||
1d ) ; minimum
|
||||
|
||||
NS ns1.child.address03.xa.
|
||||
NS ns7.child.address03.xa.
|
||||
@@ -0,0 +1,12 @@
|
||||
$ORIGIN no-ns-have-ptr.address03.xa. ; Must end with "."
|
||||
$TTL 3600
|
||||
|
||||
@ SOA ns4.child.address03.xa. admin. (
|
||||
2025022400 ; serial
|
||||
6h ; refresh
|
||||
1h ; retry
|
||||
1w ; expire
|
||||
1d ) ; minimum
|
||||
|
||||
NS ns4.child.address03.xa.
|
||||
NS ns5.child.address03.xa.
|
||||
@@ -0,0 +1,12 @@
|
||||
$ORIGIN non-matching-names.address03.xa. ; Must end with "."
|
||||
$TTL 3600
|
||||
|
||||
@ SOA ns8.child.address03.xa. admin. (
|
||||
2025022400 ; serial
|
||||
6h ; refresh
|
||||
1h ; retry
|
||||
1w ; expire
|
||||
1d ) ; minimum
|
||||
|
||||
NS ns8.child.address03.xa.
|
||||
NS ns9.child.address03.xa.
|
||||
@@ -0,0 +1,12 @@
|
||||
$ORIGIN ptr-is-dangling-cname.address03.xa. ; Must end with "."
|
||||
$TTL 3600
|
||||
|
||||
@ SOA ns5.child.address03.xa. admin. (
|
||||
2025022400 ; serial
|
||||
6h ; refresh
|
||||
1h ; retry
|
||||
1w ; expire
|
||||
1d ) ; minimum
|
||||
|
||||
NS ns5.child.address03.xa.
|
||||
NS ns12.child.address03.xa.
|
||||
@@ -0,0 +1,12 @@
|
||||
$ORIGIN ptr-is-good-cname-1.address03.xa. ; Must end with "."
|
||||
$TTL 3600
|
||||
|
||||
@ SOA ns1.child.address03.xa. admin. (
|
||||
2025022400 ; serial
|
||||
6h ; refresh
|
||||
1h ; retry
|
||||
1w ; expire
|
||||
1d ) ; minimum
|
||||
|
||||
NS ns1.child.address03.xa.
|
||||
NS ns10.child.address03.xa.
|
||||
@@ -0,0 +1,12 @@
|
||||
$ORIGIN ptr-is-good-cname-2.address03.xa. ; Must end with "."
|
||||
$TTL 3600
|
||||
|
||||
@ SOA ns1.child.address03.xa. admin. (
|
||||
2025022400 ; serial
|
||||
6h ; refresh
|
||||
1h ; retry
|
||||
1w ; expire
|
||||
1d ) ; minimum
|
||||
|
||||
NS ns1.child.address03.xa.
|
||||
NS ns11.child.address03.xa.
|
||||
@@ -0,0 +1,12 @@
|
||||
$ORIGIN ptr-is-illegal-cname.address03.xa. ; Must end with "."
|
||||
$TTL 3600
|
||||
|
||||
@ SOA ns4.child.address03.xa. admin. (
|
||||
2025022400 ; serial
|
||||
6h ; refresh
|
||||
1h ; retry
|
||||
1w ; expire
|
||||
1d ) ; minimum
|
||||
|
||||
NS ns4.child.address03.xa.
|
||||
NS ns13.child.address03.xa.
|
||||
@@ -0,0 +1,12 @@
|
||||
$ORIGIN ptr-resolution-no-response.address03.xa. ; Must end with "."
|
||||
$TTL 3600
|
||||
|
||||
@ SOA ns1.child.address03.xa. admin. (
|
||||
2025022400 ; serial
|
||||
6h ; refresh
|
||||
1h ; retry
|
||||
1w ; expire
|
||||
1d ) ; minimum
|
||||
|
||||
NS ns1.child.address03.xa.
|
||||
NS ns14.child.address03.xa.
|
||||
@@ -0,0 +1,12 @@
|
||||
$ORIGIN ptr-resolution-servfail.address03.xa. ; Must end with "."
|
||||
$TTL 3600
|
||||
|
||||
@ SOA ns1.child.address03.xa. admin. (
|
||||
2025022400 ; serial
|
||||
6h ; refresh
|
||||
1h ; retry
|
||||
1w ; expire
|
||||
1d ) ; minimum
|
||||
|
||||
NS ns1.child.address03.xa.
|
||||
NS ns15.child.address03.xa.
|
||||
@@ -0,0 +1,15 @@
|
||||
$ORIGIN reverse-aliases.address03.xa. ; Must end with "."
|
||||
$TTL 3600
|
||||
|
||||
@ SOA ns1.child.address03.xa. admin. (
|
||||
2025022400 ; serial
|
||||
6h ; refresh
|
||||
1h ; retry
|
||||
1w ; expire
|
||||
1d ) ; minimum
|
||||
|
||||
NS ns1.child.address03.xa.
|
||||
NS ns2.child.address03.xa.
|
||||
|
||||
1-4-0-0 PTR ns11.child.address03.xa.
|
||||
41 PTR ns11.child.address03.xa.
|
||||
@@ -0,0 +1,219 @@
|
||||
# Address03 Test Zones Output
|
||||
|
||||
# Table of contents
|
||||
* [Introduction](#introduction)
|
||||
* [All message tags](#all-message-tags)
|
||||
* [All scenarios](#all-scenarios)
|
||||
* [zonemaster-cli commands and their output for each test scenario](#zonemaster-cli-command-and-their-output-for-each-test-scenario)
|
||||
|
||||
## Introduction
|
||||
|
||||
In this file the output of running `zonemaster-cli` for every test zone is
|
||||
found. This file is created during the development of the test zones and should
|
||||
be updated as the implementation of the test case or the test scenarios or test
|
||||
zones are updated or corrected.
|
||||
|
||||
During development and any update this document serves as tracking and log tool.
|
||||
It also serves as a template for future development of test zones for
|
||||
scenarios for other test cases.
|
||||
|
||||
## All message tags
|
||||
|
||||
* NAMESERVER\_IP\_PTR\_MATCH
|
||||
* NAMESERVER\_IP\_PTR\_MISMATCH
|
||||
* NAMESERVER\_IP\_WITHOUT\_REVERSE
|
||||
* NO\_RESPONSE\_PTR\_QUERY
|
||||
|
||||
## All scenarios
|
||||
|
||||
| Scenario name | Zone name |
|
||||
|:---------------------------|:----------------------------------------|
|
||||
| ALL-NS-HAVE-PTR-1 | all-ns-have-ptr-1.address03.xa |
|
||||
| ALL-NS-HAVE-PTR-2 | all-ns-have-ptr-2.address03.xa |
|
||||
| NO-NS-HAVE-PTR | no-ns-have-ptr.address03.xa |
|
||||
| INCOMPLETE-PTR-1 | incomplete-ptr-1.address03.xa |
|
||||
| INCOMPLETE-PTR-2 | incomplete-ptr-2.address03.xa |
|
||||
| NON-MATCHING-NAMES | non-matching-names.address03.xa |
|
||||
| PTR-IS-GOOD-CNAME-1 | ptr-is-good-cname-1.address03.xa |
|
||||
| PTR-IS-GOOD-CNAME-2 | ptr-is-good-cname-2.address03.xa |
|
||||
| PTR-IS-DANGLING-CNAME | ptr-is-dangling-cname.address03.xa |
|
||||
| PTR-IS-ILLEGAL-CNAME | ptr-is-illegal-cname.address03.xa |
|
||||
| PTR-RESOLUTION-NO-RESPONSE | ptr-resolution-no-response.address03.xa |
|
||||
| PTR-RESOLUTION-SERVFAIL | ptr-resolution-servfail.address03.xa |
|
||||
|
||||
|
||||
## zonemaster-cli commands and their output for each test scenario
|
||||
|
||||
The level (`--level`) must be set to the lowest level of the message tags. For
|
||||
this test case `INFO` is the lowest level. It is only meaningful to test the
|
||||
test zones with `--test Address03`.
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:------------------|:---------------------------|:-----------------------|
|
||||
| ALL-NS-HAVE-PTR-1 | NAMESERVER\_IP\_PTR\_MATCH | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --raw --show-testcase --test address03 --hints COMMON/hintfile --level info all-ns-have-ptr-1.address03.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v7.0.0
|
||||
0.10 INFO Address03 NAMESERVER_IP_PTR_MATCH
|
||||
```
|
||||
--> OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:------------------|:---------------------------|:-----------------------|
|
||||
| ALL-NS-HAVE-PTR-2 | NAMESERVER\_IP\_PTR\_MATCH | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --raw --show-testcase --test address03 --hints COMMON/hintfile --level info all-ns-have-ptr-2.address03.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v7.0.0
|
||||
0.11 INFO Address03 NAMESERVER_IP_PTR_MATCH
|
||||
```
|
||||
--> OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:---------------|:---------------------------------|:-----------------------|
|
||||
| NO-NS-HAVE-PTR | NAMESERVER\_IP\_WITHOUT\_REVERSE | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --raw --show-testcase --test address03 --hints COMMON/hintfile --level info no-ns-have-ptr.address03.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v7.0.0
|
||||
0.06 WARNING Address03 NAMESERVER_IP_WITHOUT_REVERSE ns_ip=127.11.3.34; nsname=ns4.child.address03.xa
|
||||
0.07 WARNING Address03 NAMESERVER_IP_WITHOUT_REVERSE ns_ip=fda1:b2:c3:0:127:11:3:34; nsname=ns4.child.address03.xa
|
||||
0.08 WARNING Address03 NAMESERVER_IP_WITHOUT_REVERSE ns_ip=127.11.3.35; nsname=ns5.child.address03.xa
|
||||
0.09 WARNING Address03 NAMESERVER_IP_WITHOUT_REVERSE ns_ip=fda1:b2:c3:0:127:11:3:35; nsname=ns5.child.address03.xa
|
||||
```
|
||||
--> OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:-----------------|:---------------------------------|:-----------------------|
|
||||
| INCOMPLETE-PTR-1 | NAMESERVER\_IP\_WITHOUT\_REVERSE | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --raw --show-testcase --test address03 --hints COMMON/hintfile --level info incomplete-ptr-1.address03.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v7.0.0
|
||||
0.08 WARNING Address03 NAMESERVER_IP_WITHOUT_REVERSE ns_ip=127.11.3.36; nsname=ns6.child.address03.xa
|
||||
```
|
||||
--> OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:-----------------|:---------------------------------|:-----------------------|
|
||||
| INCOMPLETE-PTR-2 | NAMESERVER\_IP\_WITHOUT\_REVERSE | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --raw --show-testcase --test address03 --hints COMMON/hintfile --level info incomplete-ptr-2.address03.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v7.0.0
|
||||
0.07 WARNING Address03 NAMESERVER_IP_WITHOUT_REVERSE ns_ip=fda1:b2:c3:0:127:11:3:37; nsname=ns7.child.address03.xa
|
||||
```
|
||||
--> OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:-------------------|:------------------------------|:-----------------------|
|
||||
| NON-MATCHING-NAMES | NAMESERVER\_IP\_PTR\_MISMATCH | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --raw --show-testcase --test address03 --hints COMMON/hintfile --level info non-matching-names.address03.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v7.0.0
|
||||
0.11 NOTICE Address03 NAMESERVER_IP_PTR_MISMATCH names=a-naughty-nameserver.child.address03.xa.; ns_ip=127.11.3.38; nsname=ns8.child.address03.xa
|
||||
0.12 NOTICE Address03 NAMESERVER_IP_PTR_MISMATCH names=a-naughty-nameserver.child.address03.xa.; ns_ip=fda1:b2:c3:0:127:11:3:38; nsname=ns8.child.address03.xa
|
||||
0.13 NOTICE Address03 NAMESERVER_IP_PTR_MISMATCH names=non-matching-set-1.child.address03.xa./non-matching-set-2.child.address03.xa.; ns_ip=127.11.3.39; nsname=ns9.child.address03.xa
|
||||
0.13 NOTICE Address03 NAMESERVER_IP_PTR_MISMATCH names=non-matching-set-1.child.address03.xa./non-matching-set-2.child.address03.xa.; ns_ip=fda1:b2:c3:0:127:11:3:39; nsname=ns9.child.address03.xa
|
||||
```
|
||||
--> OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:--------------------|:---------------------------|:-----------------------|
|
||||
| PTR-IS-GOOD-CNAME-1 | NAMESERVER\_IP\_PTR\_MATCH | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --raw --show-testcase --test address03 --hints COMMON/hintfile --level info ptr-is-good-cname-1.address03.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v7.0.0
|
||||
0.15 INFO Address03 NAMESERVER_IP_PTR_MATCH
|
||||
```
|
||||
--> OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:--------------------|:---------------------------|:-----------------------|
|
||||
| PTR-IS-GOOD-CNAME-2 | NAMESERVER\_IP\_PTR\_MATCH | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --raw --show-testcase --test address03 --hints COMMON/hintfile --level info ptr-is-good-cname-2.address03.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v7.0.0
|
||||
0.14 WARNING Address03 NAMESERVER_IP_WITHOUT_REVERSE ns_ip=127.11.3.41; nsname=ns11.child.address03.xa
|
||||
0.16 WARNING Address03 NAMESERVER_IP_WITHOUT_REVERSE ns_ip=fda1:b2:c3:0:127:11:3:41; nsname=ns11.child.address03.xa
|
||||
```
|
||||
|
||||
The output is incorrect with Zonemaster-Engine version 7.0.0 due to a bug (<https://github.com/zonemaster/zonemaster/issues/1353>).
|
||||
|
||||
--> Not yet OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:----------------------|:---------------------------------|:-----------------------|
|
||||
| PTR-IS-DANGLING-CNAME | NAMESERVER\_IP\_WITHOUT\_REVERSE | 2) |
|
||||
|
||||
* (2) All tags except for those specified as “Mandatory message tags”
|
||||
|
||||
```
|
||||
$ zonemaster-cli --raw --show-testcase --test address03 --hints COMMON/hintfile --level info ptr-is-dangling-cname.address03.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v7.0.0
|
||||
0.07 WARNING Address03 NAMESERVER_IP_WITHOUT_REVERSE ns_ip=127.11.3.42; nsname=ns12.child.address03.xa
|
||||
0.08 WARNING Address03 NAMESERVER_IP_WITHOUT_REVERSE ns_ip=fda1:b2:c3:0:127:11:3:42; nsname=ns12.child.address03.xa
|
||||
0.08 WARNING Address03 NAMESERVER_IP_WITHOUT_REVERSE ns_ip=127.11.3.35; nsname=ns5.child.address03.xa
|
||||
0.09 WARNING Address03 NAMESERVER_IP_WITHOUT_REVERSE ns_ip=fda1:b2:c3:0:127:11:3:35; nsname=ns5.child.address03.xa
|
||||
```
|
||||
--> OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:---------------------|:---------------------------------|:----------------------------------------------------------|
|
||||
| PTR-IS-ILLEGAL-CNAME | NAMESERVER\_IP\_WITHOUT\_REVERSE | NAMESERVER\_IP\_PTR\_MATCH, NAMESERVER\_IP\_PTR\_MISMATCH |
|
||||
|
||||
```
|
||||
$ zonemaster-cli --raw --show-testcase --test address03 --hints COMMON/hintfile --level info ptr-is-illegal-cname.address03.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v7.0.0
|
||||
0.06 ERROR Address03 CNAME_RECORDS_MULTIPLE_FOR_NAME name="43.3.11.127.in-addr.arpa"
|
||||
0.06 WARNING Address03 NO_RESPONSE_PTR_QUERY domain=43.3.11.127.in-addr.arpa.
|
||||
0.06 ERROR Address03 CNAME_RECORDS_MULTIPLE_FOR_NAME name="3.4.0.0.3.0.0.0.1.1.0.0.7.2.1.0.0.0.0.0.3.c.0.0.2.b.0.0.1.a.d.f.ip6.arpa"
|
||||
0.06 WARNING Address03 NO_RESPONSE_PTR_QUERY domain=3.4.0.0.3.0.0.0.1.1.0.0.7.2.1.0.0.0.0.0.3.c.0.0.2.b.0.0.1.a.d.f.ip6.arpa.
|
||||
0.07 WARNING Address03 NAMESERVER_IP_WITHOUT_REVERSE ns_ip=127.11.3.34; nsname=ns4.child.address03.xa
|
||||
0.07 WARNING Address03 NAMESERVER_IP_WITHOUT_REVERSE ns_ip=fda1:b2:c3:0:127:11:3:34; nsname=ns4.child.address03.xa
|
||||
```
|
||||
--> OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:---------------------------|:-------------------------|:----------------------------------------------------------|
|
||||
| PTR-RESOLUTION-NO-RESPONSE | NO\_RESPONSE\_PTR\_QUERY | NAMESERVER\_IP\_PTR\_MATCH, NAMESERVER\_IP\_PTR\_MISMATCH |
|
||||
|
||||
```
|
||||
$ zonemaster-cli --raw --show-testcase --test address03 --hints COMMON/hintfile --level info ptr-resolution-no-response.address03.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v7.0.0
|
||||
40.12 WARNING Address03 NO_RESPONSE_PTR_QUERY domain=44.3.11.127.in-addr.arpa.
|
||||
40.12 WARNING Address03 NO_RESPONSE_PTR_QUERY domain=4.4.0.0.3.0.0.0.1.1.0.0.7.2.1.0.0.0.0.0.3.c.0.0.2.b.0.0.1.a.d.f.ip6.arpa.
|
||||
```
|
||||
--> OK
|
||||
|
||||
| Scenario name | Mandatory message tag | Forbidden message tags |
|
||||
|:------------------------|:-------------------------|:----------------------------------------------------------|
|
||||
| PTR-RESOLUTION-SERVFAIL | NO\_RESPONSE\_PTR\_QUERY | NAMESERVER\_IP\_PTR\_MATCH, NAMESERVER\_IP\_PTR\_MISMATCH |
|
||||
|
||||
```
|
||||
$ zonemaster-cli --raw --show-testcase --test address03 --hints COMMON/hintfile --level info ptr-resolution-servfail.address03.xa
|
||||
0.00 INFO Unspecified GLOBAL_VERSION version=v7.0.0
|
||||
0.07 WARNING Address03 NAMESERVER_IP_WITHOUT_REVERSE ns_ip=127.11.3.45; nsname=ns15.child.address03.xa
|
||||
0.08 WARNING Address03 NAMESERVER_IP_WITHOUT_REVERSE ns_ip=fda1:b2:c3:0:127:11:3:45; nsname=ns15.child.address03.xa
|
||||
```
|
||||
--> Not yet OK
|
||||
Reference in New Issue
Block a user