1$ORIGIN test-vectors.
2$TTL 3600
3
4@	SOA	primary admin 1 3600 1800 7200 3600
5
6	NS	primary
7primary	A	127.0.0.1
8; D.1. AliasForm
9
10v01	SVCB	0 foo.example.com.
11
12; D.2. ServiceForm
13; The first form is the simple "use the ownername".
14
15v02	SVCB	1 .
16
17; This vector only has a port.
18
19v03	SVCB	16 foo.example.com. port=53
20
21; This example has a key that is not registered, its value is unquoted.
22
23v04	SVCB	1 foo.example.com. key667=hello
24
25; This example has a key that is not registered, its value is quoted and
26; contains a decimal-escaped character.
27
28v05	SVCB	1 foo.example.com. key667="hello\210qoo"
29
30; Here, two IPv6 hints are quoted in the presentation format.
31
32v06	SVCB	1 foo.example.com. ipv6hint="2001:db8::1,2001:db8::53:1"
33
34; This example shows a single IPv6 hint in IPv4 mapped IPv6 presentation format.
35
36v07	SVCB	1 example.com. ipv6hint="2001:db8:ffff:ffff:ffff:ffff:198.51.100.100"
37
38; In the next vector, neither the SvcParamValues nor the mandatory keys are
39; sorted in presentation format, but are correctly sorted in the wire-format.
40
41v08	SVCB	16 foo.example.org. (alpn=h2,h3-19 mandatory=ipv4hint,alpn
42                    ipv4hint=192.0.2.1)
43
44; This last (two) vectors has an alpn value with an escaped comma and an
45; escaped backslash in two presentation formats.
46
47v09	SVCB	16 foo.example.org. alpn="f\\\\oo\\,bar,h2"
48v10	SVCB	16 foo.example.org. alpn=f\\\092oo\092,bar,h2
49
50
51; D.1. AliasForm
52
53v11	HTTPS	0 foo.example.com.
54
55; D.2. ServiceForm
56; The first form is the simple "use the ownername".
57
58v12	HTTPS	1 .
59
60; This vector only has a port.
61
62v13	HTTPS	16 foo.example.com. port=53
63
64; This example has a key that is not registered, its value is unquoted.
65
66v14	HTTPS	1 foo.example.com. key667=hello
67
68; This example has a key that is not registered, its value is quoted and
69; contains a decimal-escaped character.
70
71v15	HTTPS	1 foo.example.com. key667="hello\210qoo"
72
73; Here, two IPv6 hints are quoted in the presentation format.
74
75v16	HTTPS	1 foo.example.com. ipv6hint="2001:db8::1,2001:db8::53:1"
76
77; This example shows a single IPv6 hint in IPv4 mapped IPv6 presentation format.
78
79v17	HTTPS	1 example.com. ipv6hint="2001:db8:ffff:ffff:ffff:ffff:198.51.100.100"
80
81; In the next vector, neither the SvcParamValues nor the mandatory keys are
82; sorted in presentation format, but are correctly sorted in the wire-format.
83
84v18	HTTPS	16 foo.example.org. (alpn=h2,h3-19 mandatory=ipv4hint,alpn
85                    ipv4hint=192.0.2.1)
86
87; This last (two) vectors has an alpn value with an escaped comma and an
88; escaped backslash in two presentation formats.
89
90v19	HTTPS	16 foo.example.org. alpn="f\\\\oo\\,bar,h2"
91v20	HTTPS	16 foo.example.org. alpn=f\\\092oo\092,bar,h2
92
93