title: Cannot get IPv6 addresses returned from DNS64 (iOS)
body: <p>In light of Apple's recent announcement that all new mobile apps need to support "IPv6-only" in June, I am using their DNS64/NAT64 setup (described <a href="https://www.google.com/search?client=safari&amp;rls=en&amp;q=nat64%2Fdns64%20apple&amp;oq=nat64%2Fdns64%20apple&amp;gs_l=serp.3...4220.4771.0.4817.6.5.0.0.0.0.93.276.3.3.0....0...1c.1.64.serp..3.2.183...0i30j0i22i30.XCkkJimeHTk" rel="nofollow">here</a>) to try and test my app. </p>
  
  <p>I am not able to get DNS64 to work properly with this setup. In particular, when I try to do a DNS lookup on any address using getaddrinfo(), I get EAI_NONAME.  Here is the exact code I am using:</p>
  
  <pre><code>struct addrinfo hints;
  memset(&amp;hints, 0, sizeof(struct addrinfo));
  hints.ai_family = AF_UNSPEC;    /* Allow IPv4 or IPv6 */
  hints.ai_socktype = SOCK_STREAM; /* Stream socket */
  hints.ai_flags = 0;
  hints.ai_protocol = 0;          /* Any protocol */ 
  
  int result;
  struct addrinfo *addrinfo;
  
  NSString *hostString = @"yahoo.com";
  
  result = getaddrinfo([hostString UTF8String], NULL, &amp;hints, &amp;addrinfo);
  
  if (result == 0) {
      NSLog(@"worked");
      struct sockaddr_storage stor = *( (struct sockaddr_storage *) addrinfo-&gt;ai_addr);
      NSLog(@" result = %@", [AppDelegate inet_ntoa_r:stor]);
  }
  else 
  {
      NSLog(@"bad, error = %i (%@)", result, hostString);
  }
  </code></pre>
  
  <p>I know this code is correct since when I switch to my local internet provider, I am actually able to get a IPv6 address returned for yahoo.com. However, I don't think this is the "IPv6-only" environment Apple is looking for, so I want to get things working with their NAT64/DNS64.</p>
  
  <p>To verify, I tested with the IPv6 Toolkit App on the App Store, and see the same results.</p>
  
  <p>At this point I am thinking there is some extra configuration required for DNS64, but I'm not sure what it would involve.</p>
  
  <p>EDIT: Testing the site <a href="http://test-ipv6.com" rel="nofollow">test-ipv6</a> through this DNS64 gives the error "Our test show that you will have a broken or misconfigured IPv6 setup, and this will cause problems as web sites enabled Ipv6". So there is definitely something wrong with Apple's DNS64 or my configuration of it. Any ideas?</p>