Page 1 of 1

Is IPv6 default?

Posted: Tue Aug 25, 2020 4:45 pm
by frankabagnale
Say I set up a server that:
  • Is dual stack
  • Has an A record and a AAAA record pointing to it
Then I tell people the DNS name to connect to it. Will it attempt to use IPv6 first or IPv4?

Re: Is IPv6 default?

Posted: Tue Aug 25, 2020 7:53 pm
by Rseding91
I would guess ipv4; but we don't explicitly tell the operating system which one should be used. We just give it a host name and say "hey what's the IP for this?" through calling getaddrinfo(...) with ai_family = AF_UNSPEC