Re: compensating for dhcp which only provides useless dns
On Wed, Jul 22, 2009 at 10:50:08PM -0700, Paul Scott wrote:
> Hi,
>
> I have a new install of sid on a laptop with a new hard drive. The
> wireless works fine except at one location where my guess is that the
> DNS is not set up correctly. I work around this by adding useable
> nameserver addresses to /etc/resolv.conf. I don't have resolvconf
> installed but I haven't figured out how /etc/resolv.conf is being
> overwritten or where I can put the working nameserver addresses so the
> automatic detection of this particular AP will use them.
Override those values in a script in /etc/dhcp3/dhclient-enter-hooks.d/
?
IIRC non-executable scriptlets there are sourced rather than executed.
The variable to override seems to be new_domain_name_servers .
--
Tzafrir Cohen | tzafrir@jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir@cohens.org.il | | best
ICQ# 16849754 | | friend
Reply to: