X-Spam-Check-By: sourceware.org Message-ID: <8389af8b0602182023i1638061fgc0babe26d0544b0f@mail.gmail.com> Date: Sun, 19 Feb 2006 13:23:56 +0900 From: "Hiroki Sakagami" To: cygwin AT cygwin DOT com Subject: resolv.conf equivalent on Cygwin MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k1J4O8Ia025707 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/