Re: After enabling IPv6 curl github.com fails, succeeds with IPv4
Mayuresh <[email protected]> Wed, 22 Jul 2026 00:04:33 +0530
| Newsgroups | gmane.os.netbsd.general |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Jul 21, 2026 at 06:14:45PM +0000, Taylor R Campbell wrote: > Try `getaddrinfo github.com'. The getaddrinfo(1) tool will more > closely reflect what applications will observe. $ getaddrinfo -f inet6 github.com dgram inet6 udp 2a06:98c1:3120::3 0 dgram inet6 udp 2a06:98c1:3121::3 0 stream inet6 tcp 2a06:98c1:3121::3 0 stream inet6 tcp 2a06:98c1:3120::3 0 As I mentioned in another mail it tries github.com.in after failing to find github.com and finds it. That implicit suffixing is seen happening in tcpdump for other domain names, too, when the given name fails to find AAAA record. It's .in, possibly because my hostname ends in that. Strange that internet standards allow github.com.in to exist - particularly if it's universal for getaddrinfo to try implicit suffix as happening here. -- Mayuresh