Table of Contents
Newsgroups: gmane.linux.debian.user Date: Wed, 24 May 2006 17:54:04 +0200
> My crabby ISP is so screwed up, that I need 4 or more seconds to resolve > google.com, and many time I would get "domain name not found" right in > the middling while I'm looking my yahoo email. It's no use complaining > to my ISP. I just installed the DNS cache server. > > The problem is it won't be long before my etc/resolv.conf, which points > to my own DNS cache server, get changed. How can I solve that? Is there > any hooks like ipup(?) for dial up?
You might want to look at the "resolvconf" package.
George Borisov
> The problem is it won't be long before my etc/resolv.conf, which points > to my own DNS cache server, get changed. How can I solve that? Is there > any hooks like ipup(?) for dial up?
if you use pump for a dhcp client, there are a couple of ways to tell it not to update the DNS resolver configuration (add '-d' in the init script, or even better put 'device eth0 { nodns }' in pump.conf)
if you don't use pump, you can either look for a similar feature in your dhcp client or simply 'apt-get install pump' (it will replace your current client)
Joris
> if you use pump for a dhcp client, there are a couple of ways to tell it > not to update the DNS resolver configuration (add '-d' in the init > script, or even better put 'device eth0 { nodns }' in pump.conf)
And if you are using dhclient you can add the following line to your /etc/dhclient.conf
supersede domain-name-servers 127.0.0.1;
"man dhclient.conf" for more details
Ken Wahl
dhclient-script provides the enter and exit hooks for local customizations to to override the default behaviour of the client in creating a /etc/resolv.conf file.
After all processing has completed, /etc/dhclient-script checks for the presence of the /etc/dhclient-exit-hooks script, which if present is invoked using the '.' command.