delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/06/28/00:23:06

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_05,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <AANLkTinLPkgiLIGjdnKju25e9oBGAgTte2MVHfmuSUj8@mail.gmail.com>
References: <AANLkTimch70a2y2RlPXK-3uvNO3-P_vklrxsUQ5ovcAN AT mail DOT gmail DOT com> <AANLkTintE_HV-9dnSLMzWrxdenR1crc9ujrq_DMKFnyd AT mail DOT gmail DOT com> <AANLkTilB45VnBmoz5-kUwIsbPURSGXrrqNeUXiAhvQSt AT mail DOT gmail DOT com> <AANLkTinLPkgiLIGjdnKju25e9oBGAgTte2MVHfmuSUj8 AT mail DOT gmail DOT com>
Date: Mon, 28 Jun 2010 00:22:48 -0400
Message-ID: <AANLkTikqLl-RqZOmI9vKwUkv9fl8M-r2tbY8Hwq4FREo@mail.gmail.com>
Subject: Re: DHCP and resolv.conf
From: Alex Leigh <leigh AT hcs DOT harvard DOT edu>
To: cygwin <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

That should do it, thank you very much!

Alex

On Sun, Jun 27, 2010 at 7:53 PM, Steven Collins <spc DOT for DOT nbc AT gmail DOT com> wro=
te:
> I really thought I'd posted this before, but can't find it with
> Google. I run the attached script, which is mostly a gawk program,
> from my .bashrc and .profile on my laptop. This ensures that my
> resolv.conf gets configured correctly for the current network
> connection each time I start a new interactive shell. This is really
> more frequently than it probably needs to be, but it gets the job done
> for me and I've never really noticed a significant delay from it.
>
> Steven
>
> On Sun, Jun 27, 2010 at 01:49, Alex Leigh <> wrote:
>>
>> It's not possible to do it with a Windows service that updates
>> resolv.conf whenever a new DHCP lease is obtained, or, if that's not
>> possible, a cronjob that periodically polls for new nameservers
>> obtained from DHCP? I don't know enough about Windows to know if
>> there's an API for accessing the required information.
>>
>> Alex
>>
>> On Sun, Jun 27, 2010 at 3:27 AM, Huang Bambo <> wrote:
>> > It's not possible.
>> > DHCP is handled by Windows, not by cygwin.
>> >
>> > 2010/6/27 Alex Leigh <>
>> >>
>> >> Hi,
>> >>
>> >> Apologies if this has been asked before, but is it possible to have
>> >> /etc/resolv.conf in Cygwin to be automatically updated with
>> >> nameservers obtained using DHCP from Windows networking? Thanks.
>> >>
>> >> Alex
>> >>
>> >> --
>> >> Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html
>> >> FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/
>> >> Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html
>> >> Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple
>> >>
>> >
>> > --
>> > Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html
>> > FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/
>> > Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html
>> > Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple
>> >
>> >
>>
>> --
>> Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html
>> FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/
>> Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html
>> Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple
>>
>
> --
> Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html
> FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/
> Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html
> Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple
>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019