by LinuxBender · 3y ago · 0 comments
ipv4only 1h in a x.x.x.x
ipv6only 1h in aaaa x:x:x:x:x:x:x:x
Then in your apex/root page lazy-load the two images ideally in a way that won't block rending the page if one of the images does not load. One image references the ipv4only domain name and the other image references the ip6only domain name. Both of those domains should be added as aliases to your main virtual host. People can also see visually which versions they can reach. Others here can probably suggest the best way to do this that will not affect the speed of your site. You can then parse your access logs to see who can load both, one or the other.If you're serving http(s) on standard ports, ipv4 only should be ok. Maybe not ideal, but ok. There's less and less high profile sites doing that, but at least for me, www.reddit.com and www.github.com are both returning only an A record right now; As of now, an internet connection that doesn't get you to github or reddit is clearly deficient, so most consumers have some access to ipv4.
ipv6 may be a little more important if you're doing stuff outside http. For users with ipv6, there's likely to be nat and other network manipulation and restriction on ipv6 vs ipv4. This can be pretty useful for say realtime communications or long mostly idle connections, where CGNAT can cause trouble.