IOS development uses mobile hotspot to build IPv6 network test environment

The method provided by Apple is to help us create a NAT64 network, here first to understand what is NAT64. In a nutshell, it looks like this:

IPv6 network created by Mac

So, yes, your phone is IPv6 to your Mac, but your Mac is still IPv4 to your server. If this test passes, it indicates that your client application is (mostly) fine on an IPv6 network, but it does not verify that your server responds properly to IPv6 networks.

However, when Apple audits it, it goes to the DNS server and asks for your server’s IPv6 address and then accesses it. If the IPv6 address cannot be queried, the system queries the IPv4 address and converts it to the IPv4 address. Apple explicitly states that servers do not need to support IPv6, but one thing apple fails to point out is that while your server does not need to support IPv6, it must respond correctly to IPv6 DNS queries.

How do you test it? $dig +nocmd +nostats example.com AAAA If the status returned is NOERROR, there is basically no problem, but the test must pass in multiple network environments. If you return something else, especially in the case of SERVFAIL, it’s a disaster. Since you have verified that the client has no problems, now you need to do, is to urge your operations, background, etc., to change the DNS configuration, until the stable return NOERROR.