You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method DialContext of net.Dialer will resolve both A and AAAA records for a domain name, regardless of whether the machine's network supports IPv6 or not. If not support IPv6, DNS AAAA requests is unnecessary, it will cause additional cost.
change file: go/src/net/dial.go
what additional cost are we talking about? it should fail ~immediately if ipv6 isn't available
before send real request, domain name need be resolve to IP, If not support IPv6, domain name AAAA records is unnecessary, DNS AAAA requests cause additional cost.
this blog has good explanation about additional cost: https://studygolang.com/topics/15021