ubuntu network disconnect problem
there was some weird problem in my ubuntu pc. the network connection is closed frequently and it was fixed by rebooting. i googled the situation and nothing found. then i check the resolv.conf and it was empty and there was a message #Generated by NetworkManager. WTF!
i googled it and found these solutions
sudo chmod -w /etc/resolv.conf sudo chattr +i /etc/resolv.conf
this prevents to change the resolv.conf file, but not a good idea
this one is more primitive solution
sudo vi /etc/dhcp3/dhclient.conf
and change this line.
prepend domain-name-servers 8.8.8.8
i don’t know which one works and which one works not. i applied all.. and got no problem now. so i wish you luck! enjoy the ubuntu life!
