ping -4 sends out an IPv6 AAAA DNS request causing a could not find host race condition error

Z

Zectbumo

Hi I'm finding that trying to ping even when using the -4 option is causing a problem because Windows simultaneously asks for both the IPv6 and IPv4 when trying to resolve a hostname with a local DNS. The parallel requests is causing a race condition where ping sometimes fails. When ping gets back the DNS "AAAA" it responds with "could not find host" failing immediately even though there is a valid "A" response for IPv4 in the following response. If the "A" record comes back before the "AAAA" record then the ping is successful otherwise I see a "could not find host". Thus the race condition. Is this going to be fixed? For now I solved this by turning off IPv6 on my router to prevent it responding to "AAAA" requests but this is not ideal.

Continue reading...
 
Back
Top Bottom