[PATCH] CYGWIN: Fix resolver debugging output
Lavrentiev, Anton (NIH/NLM/NCBI) [C]
Tue Feb 2 19:38:58 GMT 2021
> with some customizations, and not noticed any issues so far. Should I be wary in future?
Have you used the <resolv.h>/<arpa/nameser.h> APIs, or low-level DNS other than with getXbyY(), or maybe debugged DNS?
The changes are not to remove any existing functionality -- I don't see how that was not clear --
but to make it easier to use the API when you have to do a little extra, like seeing the nameserver
IP addresses in a more human-readable form. But TBH, using native API (in the absence of /etc/resolv.conf,
or by using "options osquery" in it -- but then most of the stuff in that file is just simply ignored, JFYI),
is the best way of dealing with DNS in CYGWIN. The minires.c implementation is rather simplistic (but it's
good when one needs to stay in full control / observe of what they are doing -- and for me is the development
stage, but I'll drop that and switch back to the OS API once everything is working as it should, for the project
that I'm dealing with right now).
Also, there was at least one bug.
More information about the Cygwin-patches