Who changes /etc/resolv.conf?
I have an adsl connection, started by pppd. I tell pppd to use my /etc/resolv.conf by commenting the line "usepeerdns". But after some time, resolv.conf gets changed. These are my configuration files:
# Minimalistic default options file for DSL/PPPoE connections
# mtu 1492
plugin rp-pppoe.so eth0
user "my user"
Who keeps changing my /etc/resolv.conf? In case it matters, I'm using Debian Sarge.
Very likely in this case what is happening is that your system is doing a DHCP renew. When it does that, it runs the /etc/dhclient-script, which calls /sbin/resolvconf. This in turn queries the DHCP server of your ISP and rewrites resolv.conf.
how might one rectify this?
is there a parameter you can pass to dhclient so that it doesn't rewrite resolv.conf?
Set up a static ip.
I think this is the easiest solution: make sure /etc/resolv.conf contains exactly what you need and then:
chattr +i /etc/resolv.conf
wil make it "immutable"
|All times are GMT -5. The time now is 03:47 AM.|