> Maybe Cygwin should just ask Windows for the name servers?

Cygwin does ask Windows, by default, when gethostbyname() or getnameinfo() are 
used (which most applications do).
The lookup does not depend on /etc/resolv.conf unless you configured it to do 
so in "options" in there.
(That would be "options osquery".)  So generally, it's Windows which actually 
sends a DNS request
and processes the result back (Cygwin then uses that information).

"host" and "dig" are special beasts, in that respect, as they don't use the 
Windows DNS query API
but form and send DNS requests on their own, which is why they need a properly 
configured
/etc/resolv.conf file, to know what servers to use.

HTH,

Anton Lavrentiev
Contractor NIH/NLM/NCBI


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to