I need help figuring out why my
resolv.conf keeps changing to this, causing me to not be able to access the outside internet and only the local network:
$ cat /etc/resolv.conf
I thought I fixed it by getting rid of the loopback interface and adding in the eth0 interface in
/etc/network/interfaces with the instructions on jontsai's posterous blog.
I've tried things like doing:
$ sudo ifconfig eth0 down
$ sudo ifconfig eth0 up
$ sudo /etc/init.d/networking restart
$ sudo dhclient
And then things would work temporarily, and eventually the nameserver in resolv.conf would get reverted again.
P.S. I also posted this on ubuntuforums.
There is at least one other program besides NetworkManager that's writing to
resolv.conf, and I know this because when I refresh NetworkManager, the
resolv.conf file that gets generated has a comment that says
# Generated by NetworkManager, and the version that it keeps changing to does not.
So I am trying this:
while true; do echo listening; lsof | grep /etc/resolv.conf; echo sleeping; sleep 1; done
Adding output of files:
$ cat /etc/network/interfaces
iface lo inet loopback
iface eth0 inet dhcp
No such file as
$ sudo cat /etc/NetworkManager/system-connections/Auto\ Ethernet