[PATCH] CYGWIN: Fix resolver debugging output

Lavrentiev, Anton (NIH/NLM/NCBI) [C] lavr@ncbi.nlm.nih.gov
Mon Feb 1 15:46:50 GMT 2021


> Except, the value has no meaning for ipv6.

It'll print all 0's :-)  But:

minires does not make use of the _ext field.  It does use the conventional nsaddr_list (which is IPv4),
but only if Windows native DNS API is not used: "osquery"(aka use_os)=0.

For debugging purposes, that is enough and very convenient (yet the output needed some tune-up, which I suggested in my patch).
But for practical purposes, only Windows API should be used in regular applications (which is the default, anyways, since
/etc/resolv.conf is not routinely provided, so "osquery=1" implicitly).

I'm not sure if improvements to use _ext by the minires own code would be any beneficial.

Having said that, AAAA replies should be made understood by the minires-if-os shim code
(and I can provide a patch for that, too).



More information about the Cygwin-patches mailing list