NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: After enabling IPv6 curl github.com fails, succeeds with IPv4
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
Home |
Main Index |
Thread Index |
Old Index