<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 21 Jul 2011, at 12:30, Jeroen Massar wrote:</div><br><blockquote type="cite"><div>According to that there is first an "Addr" query, I assume a "A" record<br>query, then an IPv6/AAAA one, they probably just nearly race eachother<br>and as the A was asked first it is of course returned first.<br><br>Keeping an eye on the log though, I sometimes see the AAAA answered<br>before the A, which is well, weird, seeing that the recursive DNS cache<br>for those labels is sitting only a few ms away, it would mean that<br>unbound handles requests async or so ;)<br></div></blockquote><div><br></div>Right, which was exactly the behaviour I saw in 10.6.7 during W6D, but it affected the address selection too. You could further highlight it by ping6-ing a target to 'force' IPv6.&nbsp;</div><div><br></div><div>As you point out, with the local resolver nearby, you'd probably expect the query order to determine the response order, but it often doesn't. &nbsp;We filed the 'picking IP version by DNS response order' issue with Apple as bug ID&nbsp;<span class="Apple-style-span" style="font-size: 12px; ">9580547, though it isn't a bug per se. Similar results are</span>&nbsp;reported in&nbsp;<a href="http://openradar.appspot.com/7333104">http://openradar.appspot.com/7333104</a>.</div><div><br></div><div>Anyway, the behaviour is now different in Lion. &nbsp;It may have changed in 10.6.8, which iirc was released a couple of weeks after W6D.</div><div><br><blockquote type="cite"><div><blockquote type="cite">I guess whatever their mechanism is is no longer 'secret' within the<br></blockquote><blockquote type="cite">beta, so we ought to be able to get some public confirmation from<br></blockquote><blockquote type="cite">Apple.<br></blockquote><br>Which 'beta' would that be?<br></div></blockquote><div><br></div>/jediwave This is not the beta you are looking for</div><div><br><blockquote type="cite"><div>The real solution to this all is 'simple':<br> - Working RFC3484 support (an RFC from 2003...)<br> - Clarity / Documentation on how resolving really works in OSX<br> &nbsp;&nbsp;(seems everything goes through mDNSresolver with then lots of magic)<br> - A toggle to tweak this thing as defined in RFC3484<br> &nbsp;&nbsp;eg ala /etc/gai.conf would be awesome<br></div></blockquote></div><br><div>I would vote for that :)</div><div><br></div><div>Tim</div></body></html>