I use a static IP for my RPi:
root@rpi2:/etc# cat /etc/network/interfaces
auto lo
iface lo inet loopback
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.254
wpa-essid myssid
wpa-psk mykey
dns-nameservers 192.156.0.254
/etc/resolv.conf
(which is a plain file, not a link) gets rewritten at each reboot with
# Generated by resolvconf
nameserver 127.0.0.1
I do not even have resolvconf
installed!
root@rpi2:~# aptitude search resolvconf
p resolvconf - name server information handler
How can I disable this overwriting? (short of chattr +i
which is an ugly hack)