Checking a dual-stack host
When a hostname works over one address family, test the other using the same URL and from the same client.
dig +short example.net A
dig +short example.net AAAA
curl -4 -I --connect-timeout 5 https://example.net/
curl -6 -I --connect-timeout 5 https://example.net/
- An empty answer for the relevant record means the resolver supplied no address of that family. Inspect the DNS reply status to distinguish an empty answer from a query failure.
- A connection timeout suggests checking the route, firewall and listener. A certificate error means TLS verification failed after the connection was attempted.
- If the hostname has several addresses, use
curl --resolvewith the address under test to preserve the hostname and certificate checks.