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:
2026-04-21 08:19:24 +02:00
commit 8d4eaa1489
1567 changed files with 204155 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
[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 [Connectivity04 test scenario specification].
For these test zones the following files are found in [This directory](.):
* Zone files for `asnlookup.zonemaster.net` and `connectivity04.xa`.
* CoreDNS configuration file
* Zone file and hint file for local root zone.
* "Test Zones Output" for Connectivity04.
[Connectivity04 test scenario specification]: ../../../docs/public/specifications/test-zones/Connectivity-TP/connectivity04.md

View File

@@ -0,0 +1,127 @@
$ORIGIN asnlookup.zonemaster.net. ; Must end with "."
$TTL 3600
@ SOA ns1 admin. (
2024102301 ; serial
6h ; refresh
1h ; retry
1w ; expire
1d ) ; minimum
@ NS ns1
@ NS ns2
ns1 A 127.13.4.25
ns1 AAAA fda1:b2:c3:0:127:13:4:25
ns2 A 127.13.4.26
ns2 AAAA fda1:b2:c3:0:127:13:4:26
1.origin TXT "Test string"
$ORIGIN 100.127.origin.asnlookup.zonemaster.net.
; 1.100.100.127.origin.asnlookup.zonemaster.net.
*.100 TXT "64512 | 127.100.100.0/24 | NA | NA | NA"
*.101 TXT "64512 | 127.100.101.0/24 | NA | NA | NA"
*.102 TXT "64512 | 127.100.102.0/24 | NA | NA | NA"
*.103 TXT "64512 | 127.100.103.0/24 | NA | NA | NA"
*.104 TXT "64512 | 127.100.104.0/24 | NA | NA | NA"
*.105 TXT "64512 | 127.100.105.0/24 | NA | NA | NA"
;
*.106 TXT "64512 | 127.100.106.0/24 | NA | NA | NA"
*.106 TXT "This is not ASN data" ; Ignored
;
;*.107 ; Gives NXDOMAIN (EMPTY_PREFIX_SET)
*.108 HINFO "VPS OS" ; Gives NODATA (EMPTY_PREFIX_SET)
*.109 TXT "This is not ASN data" ; Ignored (EMPTY_PREFIX_SET)
;*.110 ; SERVFAIL by cfg ; Gives ERROR_PREFIX_DATABASE
;*.111 ; REFUSED by cfg ; Gives ERROR_PREFIX_DATABASE
;*.112 ; No response (drop) by cfg ; Gives ERROR_PREFIX_DATABASE
*.113 TXT "64512 | 127.100.113.0/24 | NA | NA | NA"
*.114 TXT "64512 | 127.100.114.0/24 | NA | NA | NA"
*.115 TXT "64512 | 127.100.115.0/24 | NA | NA | NA"
*.116 TXT "64512 | 127.100.116.0/24 | NA | NA | NA"
*.117 TXT "64512 | 127.100.117.0/24 | NA | NA | NA"
*.118 TXT "64512 | 127.100.118.0/24 | NA | NA | NA"
*.119 TXT "64512 | 127.100.119.0/24 | NA | NA | NA"
*.120 TXT "64512 | 127.100.120.0/24 | NA | NA | NA"
;
; Double prefix:
*.121 TXT "64512 | 127.100.121.0/24 | NA | NA | NA"
*.121 TXT "64512 | 127.100.0.0/16 | NA | NA | NA"
;
; Double prefix:
*.122 TXT "64512 | 127.100.122.0/24 | NA | NA | NA"
*.122 TXT "64512 | 127.100.0.0/16 | NA | NA | NA"
;
; Double prefix:
*.123 TXT "64512 | 127.100.123.0/24 | NA | NA | NA"
*.123 TXT "64512 | 127.100.0.0/16 | NA | NA | NA"
;
; Overlaps with previous:
*.124 TXT "64512 | 127.100.0.0/16 | NA | NA | NA"
;
; Extra TXT with prefix does not match address in lookup
*.125 TXT "64512 | 127.100.125.0/24 | NA | NA | NA"
*.125 TXT "64512 | 127.100.255.0/24 | NA | NA | NA"
;
; Prefix does not match address in lookup
*.126 TXT "64512 | 127.100.255.0/24 | NA | NA | NA"
;
*.127 CNAME not-a-valid-name
$ORIGIN 0.0.1.0.7.2.1.0.0.0.0.0.3.c.0.0.2.b.0.0.1.a.d.f.origin6.asnlookup.zonemaster.net.
*.0.0.1.0 TXT "64513 | fda1:b2:c3:0:127:100:100::/112 | NA | NA | NA"
*.1.0.1.0 TXT "64513 | fda1:b2:c3:0:127:100:101::/112 | NA | NA | NA"
*.2.0.1.0 TXT "64513 | fda1:b2:c3:0:127:100:102::/112 | NA | NA | NA"
*.3.0.1.0 TXT "64513 | fda1:b2:c3:0:127:100:103::/112 | NA | NA | NA"
*.4.0.1.0 TXT "64513 | fda1:b2:c3:0:127:100:104::/112 | NA | NA | NA"
*.5.0.1.0 TXT "64513 | fda1:b2:c3:0:127:100:105::/112 | NA | NA | NA"
;
*.6.0.1.0 TXT "64513 | fda1:b2:c3:0:127:100:106::/112 | NA | NA | NA"
*.6.0.1.0 TXT "This is not ASN data"
;
;*.7.0.1.0 ; Gives NXDOMAIN
*.8.0.1.0 HINFO "VPS OS" ; Gives NODATA
*.9.0.1.0 TXT "This is not ASN data"
;*.0.1.1.0 ; SERVFAIL by cfg
;*.1.1.1.0 ; REFUSED by cfg
;*.2.1.1.0 ; No response (drop) by cfg
*.3.1.1.0 TXT "64513 | fda1:b2:c3:0:127:100:113::/112 | NA | NA | NA"
*.4.1.1.0 TXT "64513 | fda1:b2:c3:0:127:100:114::/112 | NA | NA | NA"
*.5.1.1.0 TXT "64513 | fda1:b2:c3:0:127:100:115::/112 | NA | NA | NA"
*.6.1.1.0 TXT "64513 | fda1:b2:c3:0:127:100:116::/112 | NA | NA | NA"
*.7.1.1.0 TXT "64513 | fda1:b2:c3:0:127:100:117::/112 | NA | NA | NA"
*.8.1.1.0 TXT "64513 | fda1:b2:c3:0:127:100:118::/112 | NA | NA | NA"
*.9.1.1.0 TXT "64513 | fda1:b2:c3:0:127:100:119::/112 | NA | NA | NA"
*.0.2.1.0 TXT "64513 | fda1:b2:c3:0:127:100:120::/112 | NA | NA | NA"
;
; Double prefix:
*.1.2.1.0 TXT "64513 | fda1:b2:c3:0:127:100:121::/112 | NA | NA | NA"
*.1.2.1.0 TXT "64513 | fda1:b2:c3:0:127:100::/96 | NA | NA | NA"
;
; Double prefix:
*.2.2.1.0 TXT "64513 | fda1:b2:c3:0:127:100:122::/112 | NA | NA | NA"
*.2.2.1.0 TXT "64513 | fda1:b2:c3:0:127:100::/96 | NA | NA | NA"
;
; Double prefix:
*.3.2.1.0 TXT "64513 | fda1:b2:c3:0:127:100:123::/112 | NA | NA | NA"
*.3.2.1.0 TXT "64513 | fda1:b2:c3:0:127:100::/96 | NA | NA | NA"
;
; Overlaps with previous:
*.4.2.1.0 TXT "64513 | fda1:b2:c3:0:127:100::/96 | NA | NA | NA"
;
; Extra TXT with prefix does not match address in lookup
*.5.2.1.0 TXT "64513 | fda1:b2:c3:0:127:100:125::/112 | NA | NA | NA"
*.5.2.1.0 TXT "64513 | fda1:b2:c3:0:127:100:255::/112 | NA | NA | NA"
;
; Prefix does not match address in lookup
*.6.2.1.0 TXT "64513 | fda1:b2:c3:0:127:100:255::/112 | NA | NA | NA"
;
*.7.2.1.0 CNAME not-a-valid-name

View File

@@ -0,0 +1,278 @@
## root
.:53 {
bind 127.13.4.23 # ns1
bind fda1:b2:c3:0:127:13:4:23 # ns1
bind 127.13.4.24 # ns2
bind fda1:b2:c3:0:127:13:4:24 # ns2
log
file Connectivity-TP/connectivity04/root-zone.zone .
}
# Resolver using test case local root
. {
bind 127.13.4.53
unbound {
option root-hints Connectivity-TP/connectivity04/hintfile.zone
}
log
}
connectivity04.xa:53 {
bind 127.13.4.21 # ns1
bind fda1:b2:c3:0:127:13:4:21 # ns1
bind 127.13.4.22 # ns2
bind fda1:b2:c3:0:127:13:4:22 # ns2
log
file Connectivity-TP/connectivity04/connectivity04.xa.zone connectivity04.xa
}
### ==== ASN lookup ====
asnlookup.zonemaster.net:53 {
bind 127.13.4.25 # ns1
bind fda1:b2:c3:0:127:13:4:25 # ns1
bind 127.13.4.26 # ns2
bind fda1:b2:c3:0:127:13:4:26 # ns2
log
file Connectivity-TP/connectivity04/asnlookup.zonemaster.net.zone asnlookup.zonemaster.net
# 110
template IN ANY 110.100.127.origin.asnlookup.zonemaster.net {
rcode "SERVFAIL"
}
template IN ANY 0.1.1.0.0.0.1.0.7.2.1.0.0.0.0.0.3.c.0.0.2.b.0.0.1.a.d.f.origin6.asnlookup.zonemaster.net {
rcode "SERVFAIL"
}
# 111
template IN ANY 111.100.127.origin.asnlookup.zonemaster.net {
rcode "REFUSED"
}
template IN ANY 1.1.1.0.0.0.1.0.7.2.1.0.0.0.0.0.3.c.0.0.2.b.0.0.1.a.d.f.origin6.asnlookup.zonemaster.net {
rcode "REFUSED"
}
# 112
acl 112.100.127.origin.asnlookup.zonemaster.net {
drop
}
acl 2.1.1.0.0.0.1.0.7.2.1.0.0.0.0.0.3.c.0.0.2.b.0.0.1.a.d.f.origin6.asnlookup.zonemaster.net {
drop
}
}
### ==== Scenarios Connectivity04 ====
good-1.connectivity04.xa:53 {
bind 127.100.100.1
bind fda1:b2:c3:0:127:100:100:1
bind 127.100.101.1
bind fda1:b2:c3:0:127:100:101:1
log
template IN NS good-1.connectivity04.xa {
answer "good-1.connectivity04.xa. 3600 IN NS dns0.connectivity04.xa."
answer "good-1.connectivity04.xa. 3600 IN NS dns1.connectivity04.xa."
}
}
good-2.connectivity04.xa:53 {
bind 127.100.102.1
bind 127.100.103.1
log
template IN NS good-2.connectivity04.xa {
answer "good-2.connectivity04.xa. 3600 IN NS dns2.connectivity04.xa."
answer "good-2.connectivity04.xa. 3600 IN NS dns3.connectivity04.xa."
}
}
good-3.connectivity04.xa:53 {
bind fda1:b2:c3:0:127:100:104:1
bind fda1:b2:c3:0:127:100:105:1
log
template IN NS good-3.connectivity04.xa {
answer "good-3.connectivity04.xa. 3600 IN NS dns4.connectivity04.xa."
answer "good-3.connectivity04.xa. 3600 IN NS dns5.connectivity04.xa."
}
}
empty-prefix-set-1.connectivity04.xa:53 {
bind 127.100.107.1
bind fda1:b2:c3:0:127:100:107:1
log
template IN NS empty-prefix-set-1.connectivity04.xa {
answer "empty-prefix-set-1.connectivity04.xa. 3600 IN NS dns7.connectivity04.xa."
}
}
empty-prefix-set-2.connectivity04.xa:53 {
bind 127.100.108.1
bind fda1:b2:c3:0:127:100:108:1
log
template IN NS empty-prefix-set-2.connectivity04.xa {
answer "empty-prefix-set-2.connectivity04.xa. 3600 IN NS dns8.connectivity04.xa."
}
}
error-prefix-database-1.connectivity04.xa:53 {
bind 127.100.110.1
bind fda1:b2:c3:0:127:100:110:1
log
template IN NS error-prefix-database-1.connectivity04.xa {
answer "error-prefix-database-1.connectivity04.xa. 3600 IN NS dns10.connectivity04.xa."
}
}
error-prefix-database-2.connectivity04.xa:53 {
bind 127.100.111.1
bind fda1:b2:c3:0:127:100:111:1
log
template IN NS error-prefix-database-2.connectivity04.xa {
answer "error-prefix-database-2.connectivity04.xa. 3600 IN NS dns11.connectivity04.xa."
}
}
error-prefix-database-3.connectivity04.xa:53 {
bind 127.100.112.1
bind fda1:b2:c3:0:127:100:112:1
log
template IN NS error-prefix-database-3.connectivity04.xa {
answer "error-prefix-database-3.connectivity04.xa. 3600 IN NS dns12.connectivity04.xa."
}
}
# Scenarios ERROR-PREFIX-DATABASE-4 and -5 have been renamed.
error-prefix-database-6.connectivity04.xa:53 {
bind 127.100.125.1 # dns25
bind fda1:b2:c3:0:127:100:125:1
bind 127.100.101.1 # dns1
bind fda1:b2:c3:0:127:100:101:1
log
template IN NS error-prefix-database-6.connectivity04.xa {
answer "error-prefix-database-6.connectivity04.xa. 3600 IN NS dns25.connectivity04.xa."
answer "error-prefix-database-6.connectivity04.xa. 3600 IN NS dns1.connectivity04.xa."
}
}
error-prefix-database-7.connectivity04.xa:53 {
bind 127.100.126.1 # dns26
bind fda1:b2:c3:0:127:100:126:1
log
template IN NS error-prefix-database-7.connectivity04.xa {
answer "error-prefix-database-7.connectivity04.xa. 3600 IN NS dns26.connectivity04.xa."
}
}
error-prefix-database-8.connectivity04.xa:53 {
bind 127.100.127.1 # dns27
bind fda1:b2:c3:0:127:100:127:1
log
template IN NS error-prefix-database-8.connectivity04.xa {
answer "error-prefix-database-8.connectivity04.xa. 3600 IN NS dns27.connectivity04.xa."
}
}
has-non-asn-txt-1.connectivity04.xa:53 {
bind 127.100.106.1 # dns6
bind fda1:b2:c3:0:127:100:106:1
bind 127.100.101.1 # dns1
bind fda1:b2:c3:0:127:100:101:1
log
template IN NS has-non-asn-txt-1.connectivity04.xa {
answer "has-non-asn-txt-1.connectivity04.xa. 3600 IN NS dns6.connectivity04.xa."
answer "has-non-asn-txt-1.connectivity04.xa. 3600 IN NS dns1.connectivity04.xa."
}
}
has-non-asn-txt-2.connectivity04.xa:53 {
bind 127.100.109.1 # dns9
bind fda1:b2:c3:0:127:100:109:1
log
template IN NS has-non-asn-txt-2.connectivity04.xa {
answer "has-non-asn-txt-2.connectivity04.xa. 3600 IN NS dns9.connectivity04.xa."
}
}
ipv4-one-prefix-1.connectivity04.xa:53 {
bind 127.100.113.1
bind 127.100.113.2
log
template IN NS ipv4-one-prefix-1.connectivity04.xa {
answer "ipv4-one-prefix-1.connectivity04.xa. 3600 IN NS dns13-1.connectivity04.xa."
answer "ipv4-one-prefix-1.connectivity04.xa. 3600 IN NS dns13-2.connectivity04.xa."
}
}
ipv4-two-prefixes-1.connectivity04.xa:53 {
bind 127.100.114.1
bind 127.100.114.2
bind 127.100.115.1
log
template IN NS ipv4-two-prefixes-1.connectivity04.xa {
answer "ipv4-two-prefixes-1.connectivity04.xa. 3600 IN NS dns14-1.connectivity04.xa."
answer "ipv4-two-prefixes-1.connectivity04.xa. 3600 IN NS dns14-2.connectivity04.xa."
answer "ipv4-two-prefixes-1.connectivity04.xa. 3600 IN NS dns15.connectivity04.xa."
}
}
ipv6-one-prefix-1.connectivity04.xa:53 {
bind fda1:b2:c3:0:127:100:116:1
bind fda1:b2:c3:0:127:100:116:2
log
template IN NS ipv6-one-prefix-1.connectivity04.xa {
answer "ipv6-one-prefix-1.connectivity04.xa. 3600 IN NS dns16-1.connectivity04.xa."
answer "ipv6-one-prefix-1.connectivity04.xa. 3600 IN NS dns16-2.connectivity04.xa."
}
}
ipv6-two-prefixes-1.connectivity04.xa:53 {
bind fda1:b2:c3:0:127:100:117:1
bind fda1:b2:c3:0:127:100:117:2
bind fda1:b2:c3:0:127:100:118:1
log
template IN NS ipv6-two-prefixes-1.connectivity04.xa {
answer "ipv6-two-prefixes-1.connectivity04.xa. 3600 IN NS dns17-1.connectivity04.xa."
answer "ipv6-two-prefixes-1.connectivity04.xa. 3600 IN NS dns17-2.connectivity04.xa."
answer "ipv6-two-prefixes-1.connectivity04.xa. 3600 IN NS dns18.connectivity04.xa."
}
}
ipv4-single-ns-1.connectivity04.xa:53 {
bind 127.100.119.1
log
template IN NS ipv4-single-ns-1.connectivity04.xa {
answer "ipv4-single-ns-1.connectivity04.xa. 3600 IN NS dns19.connectivity04.xa."
}
}
ipv6-single-ns-1.connectivity04.xa:53 {
bind fda1:b2:c3:0:127:100:120:1
log
template IN NS ipv6-single-ns-1.connectivity04.xa {
answer "ipv6-single-ns-1.connectivity04.xa. 3600 IN NS dns20.connectivity04.xa."
}
}
double-prefix-1.connectivity04.xa:53 {
bind 127.100.121.1
bind 127.100.122.1
bind fda1:b2:c3:0:127:100:121:1
bind fda1:b2:c3:0:127:100:122:1
log
template IN NS double-prefix-1.connectivity04.xa {
answer "double-prefix-1.connectivity04.xa. 3600 IN NS dns21.connectivity04.xa."
answer "double-prefix-1.connectivity04.xa. 3600 IN NS dns22.connectivity04.xa."
}
}
double-prefix-2.connectivity04.xa:53 {
bind 127.100.123.1
bind 127.100.124.1
bind fda1:b2:c3:0:127:100:123:1
bind fda1:b2:c3:0:127:100:124:1
log
template IN NS double-prefix-2.connectivity04.xa {
answer "double-prefix-2.connectivity04.xa. 3600 IN NS dns23.connectivity04.xa."
answer "double-prefix-2.connectivity04.xa. 3600 IN NS dns24.connectivity04.xa."
}
}

View File

@@ -0,0 +1,170 @@
$ORIGIN connectivity04.xa. ; Must end with "."
$TTL 3600
@ SOA ns1 admin. (
2024102400 ; serial
6h ; refresh
1h ; retry
1w ; expire
1d ) ; minimum
@ NS ns1
@ NS ns2
ns1 A 127.13.4.21
ns1 AAAA fda1:b2:c3:0:127:13:4:21
ns2 A 127.13.4.22
ns2 AAAA fda1:b2:c3:0:127:13:4:22
; ### GOOD-1
dns0 A 127.100.100.1
dns0 AAAA fda1:b2:c3:0:127:100:100:1
dns1 A 127.100.101.1
dns1 AAAA fda1:b2:c3:0:127:100:101:1
good-1 NS dns0
good-1 NS dns1
; ### GOOD-2
dns2 A 127.100.102.1
dns3 A 127.100.103.1
good-2 NS dns2
good-2 NS dns3
; ### GOOD-3
dns4 AAAA fda1:b2:c3:0:127:100:104:1
dns5 AAAA fda1:b2:c3:0:127:100:105:1
good-3 NS dns4
good-3 NS dns5
; dns6 used below
; ### EMPTY-PREFIX-SET-1
dns7 A 127.100.107.1 ; NXDOMAIN
dns7 AAAA fda1:b2:c3:0:127:100:107:1 ; NXDOMAIN
empty-prefix-set-1 NS dns7
; ### EMPTY-PREFIX-SET-2
dns8 A 127.100.108.1 ; NODATA
dns8 AAAA fda1:b2:c3:0:127:100:108:1 ; NODATA
empty-prefix-set-2 NS dns8
; dns9 used below
; ### ERROR-PREFIX-DATABASE-1
dns10 A 127.100.110.1 ; SERVFAIL
dns10 AAAA fda1:b2:c3:0:127:100:110:1 ; SERVFAIL
error-prefix-database-1 NS dns10
; ### ERROR-PREFIX-DATABASE-2
dns11 A 127.100.111.1 ; REFUSED
dns11 AAAA fda1:b2:c3:0:127:100:111:1 ; REFUSED
error-prefix-database-2 NS dns11
; ### ERROR-PREFIX-DATABASE-3
dns12 A 127.100.112.1 ; No response
dns12 AAAA fda1:b2:c3:0:127:100:112:1 ; No response
error-prefix-database-3 NS dns12
; ### ERROR-PREFIX-DATABASE-4 and -5: renamed
; ### ERROR-PREFIX-DATABASE-6
dns25 A 127.100.125.1 ; Extra TXT with mismatching prefix
dns25 AAAA fda1:b2:c3:0:127:100:125:1 ; Extra TXT with mismatching prefix
error-prefix-database-6 NS dns25
error-prefix-database-6 NS dns1 ; shared with good-1 and others
; ### ERROR-PREFIX-DATABASE-7
dns26 A 127.100.126.1 ; TXT with mismatching prefix (only)
dns26 AAAA fda1:b2:c3:0:127:100:126:1 ; TXT with mismatching prefix (only)
error-prefix-database-7 NS dns26
; ### ERROR-PREFIX-DATABASE-8
dns27 A 127.100.127.1 ; No TXT but a CNAME in response
dns27 AAAA fda1:b2:c3:0:127:100:127:1 ; No TXT but a CNAME in response
error-prefix-database-8 NS dns27
; ### HAS-NON-ASN-TXT-1
dns6 A 127.100.106.1 ; extra TXT
dns6 AAAA fda1:b2:c3:0:127:100:106:1 ; extra TXT
has-non-asn-txt-1 NS dns6
has-non-asn-txt-1 NS dns1 ; shared with good-1 and others
; ### HAS-NON-ASN-TXT-2
dns9 A 127.100.109.1 ; Other TXT
dns9 AAAA fda1:b2:c3:0:127:100:109:1 ; Other TXT
has-non-asn-txt-2 NS dns9
; ### IPV4-ONE-PREFIX-1
dns13-1 A 127.100.113.1
dns13-2 A 127.100.113.2
ipv4-one-prefix-1 NS dns13-1
ipv4-one-prefix-1 NS dns13-2
; ### IPV4-TWO-PREFIXES-1
dns14-1 A 127.100.114.1
dns14-2 A 127.100.114.2
dns15 A 127.100.115.1
ipv4-two-prefixes-1 NS dns14-1
ipv4-two-prefixes-1 NS dns14-2
ipv4-two-prefixes-1 NS dns15
; ### IPV6-ONE-PREFIX-1
dns16-1 AAAA fda1:b2:c3:0:127:100:116:1
dns16-2 AAAA fda1:b2:c3:0:127:100:116:2
ipv6-one-prefix-1 NS dns16-1
ipv6-one-prefix-1 NS dns16-2
; ### IPV6-TWO-PREFIXES-1
dns17-1 AAAA fda1:b2:c3:0:127:100:117:1
dns17-2 AAAA fda1:b2:c3:0:127:100:117:2
dns18 AAAA fda1:b2:c3:0:127:100:118:1
ipv6-two-prefixes-1 NS dns17-1
ipv6-two-prefixes-1 NS dns17-2
ipv6-two-prefixes-1 NS dns18
; ### IPV4-SINGLE-NS-1
dns19 A 127.100.119.1
ipv4-single-ns-1 NS dns19
; ### IPV6-SINGLE-NS-1
dns20 AAAA fda1:b2:c3:0:127:100:120:1
ipv6-single-ns-1 NS dns20
; ### DOUBLE-PREFIX-1
dns21 A 127.100.121.1 ; Double prefix
dns21 AAAA fda1:b2:c3:0:127:100:121:1 ; Double prefix
dns22 A 127.100.122.1 ; Double prefix
dns22 AAAA fda1:b2:c3:0:127:100:122:1 ; Double prefix
double-prefix-1 NS dns21
double-prefix-1 NS dns22
; ### DOUBLE-PREFIX-2
dns23 A 127.100.123.1 ; Double prefix
dns23 AAAA fda1:b2:c3:0:127:100:123:1 ; Double prefix
dns24 A 127.100.124.1 ; Overlapping prefix
dns24 AAAA fda1:b2:c3:0:127:100:124:1 ; Overlapping prefix
double-prefix-2 NS dns23
double-prefix-2 NS dns24

View File

@@ -0,0 +1,8 @@
; Hint file for Connectivity04 local root
. 3600 NS root-ns1.xa.
. 3600 NS root-ns2.xa.
root-ns1.xa. 3600 A 127.13.4.23
root-ns1.xa. 3600 AAAA fda1:b2:c3::127:13:4:23
root-ns2.xa. 3600 A 127.13.4.24
root-ns2.xa. 3600 AAAA fda1:b2:c3::127:13:4:24

View File

@@ -0,0 +1,41 @@
$ORIGIN .
$TTL 3600
@ SOA ns1. admin.xa. (
2024100900 ; serial
6h ; refresh
1h ; retry
1w ; expire
1d ) ; minimum
NS root-ns1.xa.
NS root-ns2.xa.
root-ns1.xa. A 127.13.4.23
root-ns1.xa. AAAA fda1:b2:c3::127:13:4:23
root-ns2.xa. A 127.13.4.24
root-ns2.xa. AAAA fda1:b2:c3::127:13:4:24
$ORIGIN asnlookup.zonemaster.net.
@ NS ns1
@ NS ns2
ns1 A 127.13.4.25
ns1 AAAA fda1:b2:c3::127:13:4:25
ns2 A 127.13.4.26
ns1 AAAA fda1:b2:c3::127:13:4:26
$ORIGIN connectivity04.xa.
@ NS ns1
@ NS ns2
ns1 A 127.13.4.21
ns1 AAAA fda1:b2:c3::127:13:4:21
ns2 A 127.13.4.22
ns1 AAAA fda1:b2:c3::127:13:4:22
;EOF

View File

@@ -0,0 +1,320 @@
# Connectivity04 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-commands-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
* CN04_EMPTY_PREFIX_SET
* CN04_ERROR_PREFIX_DATABASE
* CN04_IPV4_DIFFERENT_PREFIX
* CN04_IPV4_SAME_PREFIX
* CN04_IPV4_SINGLE_PREFIX
* CN04_IPV6_DIFFERENT_PREFIX
* CN04_IPV6_SAME_PREFIX
* CN04_IPV6_SINGLE_PREFIX
## All scenarios
Scenario name | Zone name
:-------------------------|:---------------------------------------------
GOOD-1 | good-1.connectivity04.xa
GOOD-2 | good-2.connectivity04.xa
GOOD-3 | good-3.connectivity04.xa
EMPTY-PREFIX-SET-1 | empty-prefix-set-1.connectivity04.xa
EMPTY-PREFIX-SET-2 | empty-prefix-set-2.connectivity04.xa
ERROR-PREFIX-DATABASE-1 | error-prefix-database-1.connectivity04.xa
ERROR-PREFIX-DATABASE-2 | error-prefix-database-2.connectivity04.xa
ERROR-PREFIX-DATABASE-3 | error-prefix-database-3.connectivity04.xa
ERROR-PREFIX-DATABASE-6 | error-prefix-database-6.connectivity04.xa
ERROR-PREFIX-DATABASE-7 | error-prefix-database-7.connectivity04.xa
ERROR-PREFIX-DATABASE-8 | error-prefix-database-8.connectivity04.xa
HAS-NON-ASN-TXT-1 | has-non-asn-txt-1.connectivity04.xa
HAS-NON-ASN-TXT-2 | has-non-asn-txt-2.connectivity04.xa
IPV4-ONE-PREFIX-1 | ipv4-one-prefix-1.connectivity04.xa
IPV4-TWO-PREFIXES-1 | ipv4-two-prefixes-1.connectivity04.xa
IPV6-ONE-PREFIX-1 | ipv6-one-prefix-1.connectivity04.xa
IPV6-TWO-PREFIXES-1 | ipv6-two-prefixes-1.connectivity04.xa
IPV4-SINGLE-NS-1 | ipv4-single-ns-1.connectivity04.xa
IPV6-SINGLE-NS-1 | ipv6-single-ns-1.connectivity04.xa
DOUBLE-PREFIX-1 | double-prefix-1.connectivity04.xa
DOUBLE-PREFIX-2 | double-prefix-2.connectivity04.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=connetivity04`.
The test zones for these scenarios have a dedicated root zone, which means that
the hint files in the commands below must be used.
All commands are run from the same directory as this file is in.
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:---------------------------------------------------------|:--------------------
GOOD-1 | CN04_IPV4_DIFFERENT_PREFIX, CN04_IPV6_DIFFERENT_PREFIX | 2)
* (2) All tags except for those specified as "Mandatory message tags"
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw GOOD-1.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.23 INFO Connectivity04 CN04_IPV4_DIFFERENT_PREFIX ns_list=dns0.connectivity04.xa/127.100.100.1;dns1.connectivity04.xa/127.100.101.1
0.23 INFO Connectivity04 CN04_IPV6_DIFFERENT_PREFIX ns_list=dns0.connectivity04.xa/fda1:b2:c3:0:127:100:100:1;dns1.connectivity04.xa/fda1:b2:c3:0:127:100:101:1
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:---------------------------------------------------------|:--------------------
GOOD-2 | CN04_IPV4_DIFFERENT_PREFIX | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw GOOD-2.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.11 INFO Connectivity04 CN04_IPV4_DIFFERENT_PREFIX ns_list=dns2.connectivity04.xa/127.100.102.1;dns3.connectivity04.xa/127.100.103.1
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:---------------------------------------------------------|:--------------------
GOOD-3 | CN04_IPV6_DIFFERENT_PREFIX | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw GOOD-3.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.12 INFO Connectivity04 CN04_IPV6_DIFFERENT_PREFIX ns_list=dns4.connectivity04.xa/fda1:b2:c3:0:127:100:104:1;dns5.connectivity04.xa/fda1:b2:c3:0:127:100:105:1
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:---------------------------------------------------------|:--------------------
EMPTY-PREFIX-SET-1 | CN04_EMPTY_PREFIX_SET | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw EMPTY-PREFIX-SET-1.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.12 NOTICE Connectivity04 CN04_EMPTY_PREFIX_SET ns_ip=127.100.107.1
0.13 NOTICE Connectivity04 CN04_EMPTY_PREFIX_SET ns_ip=fda1:b2:c3:0:127:100:107:1
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:---------------------------------------------------------|:--------------------
EMPTY-PREFIX-SET-2 | CN04_EMPTY_PREFIX_SET | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw EMPTY-PREFIX-SET-2.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.12 NOTICE Connectivity04 CN04_EMPTY_PREFIX_SET ns_ip=127.100.108.1
0.12 NOTICE Connectivity04 CN04_EMPTY_PREFIX_SET ns_ip=fda1:b2:c3:0:127:100:108:1
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:---------------------------------------------------------|:--------------------
ERROR-PREFIX-DATABASE-1 | CN04_ERROR_PREFIX_DATABASE | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw ERROR-PREFIX-DATABASE-1.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.11 NOTICE Connectivity04 CN04_ERROR_PREFIX_DATABASE ns_ip=127.100.110.1
0.13 NOTICE Connectivity04 CN04_ERROR_PREFIX_DATABASE ns_ip=fda1:b2:c3:0:127:100:110:1
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:---------------------------------------------------------|:--------------------
ERROR-PREFIX-DATABASE-2 | CN04_ERROR_PREFIX_DATABASE | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw ERROR-PREFIX-DATABASE-2.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.10 NOTICE Connectivity04 CN04_ERROR_PREFIX_DATABASE ns_ip=127.100.111.1
0.12 NOTICE Connectivity04 CN04_ERROR_PREFIX_DATABASE ns_ip=fda1:b2:c3:0:127:100:111:1
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:---------------------------------------------------------|:--------------------
ERROR-PREFIX-DATABASE-3 | CN04_ERROR_PREFIX_DATABASE | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw ERROR-PREFIX-DATABASE-3.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
40.14 NOTICE Connectivity04 CN04_ERROR_PREFIX_DATABASE ns_ip=127.100.112.1
40.17 NOTICE Connectivity04 CN04_ERROR_PREFIX_DATABASE ns_ip=fda1:b2:c3:0:127:100:112:1
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:----------------------------------------------------------------------------------|:--------------------
ERROR-PREFIX-DATABASE-6 | CN04_IPV4_DIFFERENT_PREFIX, CN04_IPV6_DIFFERENT_PREFIX, CN04_ERROR_PREFIX_DATABASE| 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw ERROR-PREFIX-DATABASE-6.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.27 NOTICE Connectivity04 CN04_ERROR_PREFIX_DATABASE ns_ip=127.100.125.1
0.28 NOTICE Connectivity04 CN04_ERROR_PREFIX_DATABASE ns_ip=fda1:b2:c3:0:127:100:125:1
0.28 INFO Connectivity04 CN04_IPV4_DIFFERENT_PREFIX ns_list=dns1.connectivity04.xa/127.100.101.1
0.28 INFO Connectivity04 CN04_IPV6_DIFFERENT_PREFIX ns_list=dns1.connectivity04.xa/fda1:b2:c3:0:127:100:101:1
```
--> Ok
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:----------------------------------------------------------------------------------|:--------------------
ERROR-PREFIX-DATABASE-7 | CN04_ERROR_PREFIX_DATABASE | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw ERROR-PREFIX-DATABASE-7.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.15 NOTICE Connectivity04 CN04_ERROR_PREFIX_DATABASE ns_ip=127.100.126.1
0.16 NOTICE Connectivity04 CN04_ERROR_PREFIX_DATABASE ns_ip=fda1:b2:c3:0:127:100:126:1
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:----------------------------------------------------------------------------------|:--------------------
ERROR-PREFIX-DATABASE-8 | CN04_ERROR_PREFIX_DATABASE | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw ERROR-PREFIX-DATABASE-8.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.11 NOTICE Connectivity04 CN04_ERROR_PREFIX_DATABASE ns_ip=127.100.127.1
0.12 NOTICE Connectivity04 CN04_ERROR_PREFIX_DATABASE ns_ip=fda1:b2:c3:0:127:100:127:1
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:----------------------------------------------------------------------------------|:--------------------
HAS-NON-ASN-TXT-1 | CN04_IPV4_DIFFERENT_PREFIX, CN04_IPV6_DIFFERENT_PREFIX | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw HAS-NON-ASN-TXT-1.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.17 INFO Connectivity04 CN04_IPV4_DIFFERENT_PREFIX ns_list=dns1.connectivity04.xa/127.100.101.1;dns6.connectivity04.xa/127.100.106.1
0.18 INFO Connectivity04 CN04_IPV6_DIFFERENT_PREFIX ns_list=dns1.connectivity04.xa/fda1:b2:c3:0:127:100:101:1;dns6.connectivity04.xa/fda1:b2:c3:0:127:100:106:1
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:----------------------------------------------------------------------------------|:--------------------
HAS-NON-ASN-TXT-2 | CN04_EMPTY_PREFIX_SET | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw HAS-NON-ASN-TXT-2.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.09 NOTICE Connectivity04 CN04_EMPTY_PREFIX_SET ns_ip=127.100.109.1
0.10 NOTICE Connectivity04 CN04_EMPTY_PREFIX_SET ns_ip=fda1:b2:c3:0:127:100:109:1
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:---------------------------------------------------------|:--------------------
IPV4-ONE-PREFIX-1 | CN04_IPV4_SAME_PREFIX, CN04_IPV4_SINGLE_PREFIX | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw IPV4-ONE-PREFIX-1.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.20 NOTICE Connectivity04 CN04_IPV4_SAME_PREFIX ip_prefix=127.100.113.0/24; ns_list=dns13-1.connectivity04.xa/127.100.113.1;dns13-2.connectivity04.xa/127.100.113.2
0.20 WARNING Connectivity04 CN04_IPV4_SINGLE_PREFIX
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:---------------------------------------------------------|:--------------------
IPV4-TWO-PREFIXES-1 | CN04_IPV4_SAME_PREFIX, CN04_IPV4_DIFFERENT_PREFIX | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw IPV4-TWO-PREFIXES-1.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.13 NOTICE Connectivity04 CN04_IPV4_SAME_PREFIX ip_prefix=127.100.114.0/24; ns_list=dns14-1.connectivity04.xa/127.100.114.1;dns14-2.connectivity04.xa/127.100.114.2
0.13 INFO Connectivity04 CN04_IPV4_DIFFERENT_PREFIX ns_list=dns15.connectivity04.xa/127.100.115.1
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:---------------------------------------------------------|:--------------------
IPV6-ONE-PREFIX-1 | CN04_IPV6_SAME_PREFIX, CN04_IPV6_SINGLE_PREFIX | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw IPV6-ONE-PREFIX-1.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.13 NOTICE Connectivity04 CN04_IPV6_SAME_PREFIX ip_prefix=fda1:b2:c3:0:127:100:116:0/112; ns_list=dns16-1.connectivity04.xa/fda1:b2:c3:0:127:100:116:1;dns16-2.connectivity04.xa/fda1:b2:c3:0:127:100:116:2
0.13 WARNING Connectivity04 CN04_IPV6_SINGLE_PREFIX
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:---------------------------------------------------------|:--------------------
IPV6-TWO-PREFIXES-1 | CN04_IPV6_SAME_PREFIX, CN04_IPV6_SINGLE_PREFIX | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw IPV6-TWO-PREFIXES-1.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.13 NOTICE Connectivity04 CN04_IPV6_SAME_PREFIX ip_prefix=fda1:b2:c3:0:127:100:117:0/112; ns_list=dns17-1.connectivity04.xa/fda1:b2:c3:0:127:100:117:1;dns17-2.connectivity04.xa/fda1:b2:c3:0:127:100:117:2
0.13 INFO Connectivity04 CN04_IPV6_DIFFERENT_PREFIX ns_list=dns18.connectivity04.xa/fda1:b2:c3:0:127:100:118:1
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:---------------------------------------------------------|:--------------------
IPV4-SINGLE-NS-1 | CN04_IPV4_SINGLE_PREFIX, CN04_IPV4_DIFFERENT_PREFIX | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw IPV4-SINGLE-NS-1.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.15 INFO Connectivity04 CN04_IPV4_DIFFERENT_PREFIX ns_list=dns19.connectivity04.xa/127.100.119.1
0.15 WARNING Connectivity04 CN04_IPV4_SINGLE_PREFIX
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:---------------------------------------------------------|:--------------------
IPV6-SINGLE-NS-1 | CN04_IPV6_SINGLE_PREFIX, CN04_IPV6_DIFFERENT_PREFIX | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw IPV6-SINGLE-NS-1.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.11 INFO Connectivity04 CN04_IPV6_DIFFERENT_PREFIX ns_list=dns20.connectivity04.xa/fda1:b2:c3:0:127:100:120:1
0.11 WARNING Connectivity04 CN04_IPV6_SINGLE_PREFIX
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:---------------------------------------------------------|:--------------------
DOUBLE-PREFIX-1 | CN04_IPV4_DIFFERENT_PREFIX, CN04_IPV6_DIFFERENT_PREFIX | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw DOUBLE-PREFIX-1.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.15 INFO Connectivity04 CN04_IPV4_DIFFERENT_PREFIX ns_list=dns21.connectivity04.xa/127.100.121.1;dns22.connectivity04.xa/127.100.122.1
0.15 INFO Connectivity04 CN04_IPV6_DIFFERENT_PREFIX ns_list=dns21.connectivity04.xa/fda1:b2:c3:0:127:100:121:1;dns22.connectivity04.xa/fda1:b2:c3:0:127:100:122:1
```
--> OK
Scenario name | Mandatory message tag | Forbidden message tags
:------------------------|:---------------------------------------------------------|:--------------------
DOUBLE-PREFIX-2 | CN04_IPV4_DIFFERENT_PREFIX, CN04_IPV6_DIFFERENT_PREFIX | 2)
```
$ zonemaster-cli --hint=hintfile.zone --test=connectivity04 --level=info --show-testcase --raw DOUBLE-PREFIX-2.connectivity04.xa
0.00 INFO Unspecified GLOBAL_VERSION version=v6.0.0
0.15 INFO Connectivity04 CN04_IPV4_DIFFERENT_PREFIX ns_list=dns23.connectivity04.xa/127.100.123.1;dns24.connectivity04.xa/127.100.124.1
0.15 INFO Connectivity04 CN04_IPV6_DIFFERENT_PREFIX ns_list=dns23.connectivity04.xa/fda1:b2:c3:0:127:100:123:1;dns24.connectivity04.xa/fda1:b2:c3:0:127:100:124:1
```
--> OK