Files
firezone/scripts/tests/tcp-dns.sh
Jamil 06aa485e18 ci: Use search_domain for one resource in CI test (#8393)
- Adds a `search_domain` of `httpbin.test` in seeds
- Updates one of our DNS resources under CI test to use this
2025-03-15 13:27:22 +00:00

18 lines
507 B
Bash
Executable File

#!/usr/bin/env bash
source "./scripts/tests/lib.sh"
client sh -c "apk add bind-tools" # The compat tests run using the production image which doesn't have `dig`.
echo "Resolving DNS resource over TCP with search domain"
client sh -c "dig +search +tcp dns"
echo "Resolving DNS resource over TCP with FQDN"
client sh -c "dig +tcp download.httpbin"
echo "Resolving non-DNS resource over TCP"
client sh -c "dig +tcp example.com"
echo "Testing TCP fallback"
client sh -c "dig 2048.size.dns.netmeister.org"