disable auto-configuration of resolv.conf
fcodiaz at gmail.com
Wed Jun 22 12:54:03 MDT 2005
Add the following to your ifcfg-ethX file located in
/etc/sysconfig/network-scripts/ (not sure Kubuntu)
That will prevent your resolv.conf to be updated with the DHCP server.
On 6/22/05, Steve Dibb <steve at wonkabar.org> wrote:
> I'm trying to find a quick hack so I can get some boxes so they can't
> get on the Internet, but can still our intranet at work.
> Right now they use DHCP to assign their IP addresses and all, but
> resolv.conf in /etc has two nameservers in it. If I take out one of
> them, they can't get online anywhere (yes, they can still get online if
> they know the IP address, which is fine -- I'll put in a better fix when
> I have more time).
> I'm trying to find a way to set that automatically on boot though, but I
> don't know what program is setting it. Is it dhclient3? The distro is
> I could also just have a script that overwrites it at boot too, but I
> don't see anything that looks like "local" in the init/rc scripts.
> Does anyone know where I can set it?
> | This has been a P.L.U.G. mailing. |
> | Don't Fear the Penguin. |
> | IRC: #utah at irc.freenode.net |
\ v /
Francisco A. Diaz
"...the source code holds all of the answer..."
More information about the PLUG