mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 20:23:36 +08:00
test-resolve: add basic test for SVCB/HTTPS RRs
This commit is contained in:
parent
9c331dc3c8
commit
a9766d07b8
@ -19,3 +19,6 @@ ns1.unsigned AAAA fd00:dead:beef:cafe::1
|
||||
onlinesign NS ns1.unsigned
|
||||
signed NS ns1.unsigned
|
||||
unsigned NS ns1.unsigned
|
||||
|
||||
svcb SVCB 1 . alpn=dot ipv4hint=10.0.0.1 ipv6hint=fd00:dead:beef:cafe::1
|
||||
https HTTPS 1 . alpn="h2,h3"
|
||||
|
@ -346,6 +346,12 @@ run dig +noall +authority +comments SRV .
|
||||
grep -qF "status: NOERROR" "$RUN_OUT"
|
||||
grep -qE "IN\s+SOA\s+ns1\.unsigned\.test\." "$RUN_OUT"
|
||||
|
||||
run resolvectl query -t SVCB svcb.test
|
||||
grep -qF 'alpn="dot"' "$RUN_OUT"
|
||||
grep -qF "ipv4hint=10.0.0.1" "$RUN_OUT"
|
||||
|
||||
run resolvectl query -t HTTPS https.test
|
||||
grep -qF 'alpn="h2,h3"' "$RUN_OUT"
|
||||
|
||||
: "--- ZONE: unsigned.test. ---"
|
||||
run dig @ns1.unsigned.test +short unsigned.test A unsigned.test AAAA
|
||||
|
Loading…
Reference in New Issue
Block a user