DHCP and resolv.conf

Steven Collins spc.for.nbc@gmail.com
Sun Jun 27 23:53:00 GMT 2010


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:       http://cygwin.com/problems.html
> >> FAQ:                   http://cygwin.com/faq/
> >> Documentation:         http://cygwin.com/docs.html
> >> Unsubscribe info:      http://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
> >
> >
>
> --
> 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resolv.conf.rc
Type: application/octet-stream
Size: 1758 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100627/6ca9bc04/attachment.obj>
-------------- next part --------------
--
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


More information about the Cygwin mailing list