This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: minires-0.95 - a new package ready for review
On Thu, Jun 12, 2003 at 01:20:21PM -0400, Pierre A. Humblet wrote:
> Corinna Vinschen wrote:
> It works on my antique Win95 and on my CYGWIN_NT-4.0. There the Windows
> functions return an error and minires falls back to resolv.conf
> Of course LoadLibrary/GetProcAddres would work too.
Personally I think it's cleaner to use LoadLibrary/GetProcAddress.
But if it doesn't hurt...
> I have recently noticed that the information is in fact available
> from the registry, but getting to it is not straightforward
> (same kind of indirect lookups as in net.cc), so with some effort...
I had the funny idea to drop the whole Windows specific part and
instead create /etc/resolve.conf in the postinstall script from
the output of `ipconfig /all'. That would work nicely on NT,
unfortunately the `ipconfig /all' output on 9x doesn't contain the
DNS domain search list. :-(
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.