This is the mail archive of the
cygwin
mailing list for the Cygwin project.
resolv.conf equivalent on Cygwin
- From: "Hiroki Sakagami" <sakagami at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 19 Feb 2006 13:23:56 +0900
- Subject: resolv.conf equivalent on Cygwin
Hi,
I am trying to port a program with an asynchronous DNS resolver to
Cygwin. Because it can't use gethostbyname() family functions, it
needs to read /etc/resolv.conf file. However, Windows seems to have
the names of DNS servers in the registry key
"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces" or
something. Is there any Cygwin standard way to query DNS server
names?
I already wrote the code which use RegOpenKeyEx() and other functions.
But if there is another appropriate way I'd like to use it.
Regards,
--
Sakagami Hiroki
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/