At the moment, each time I restart my computer and login, I need to run
sudo su
echo -e "nameserver 8.8.8.8\nnameserver 8.8.4.4" > /etc/resolv.conf
service networking restart
To make a long story short, yesterday my internet connection worked perfectly fine. This morning I wasn't able to load or download anything. I found the above solution, but I don't want to use those commands whenever I enter my Ubuntu account.
How can I solve this problem?
P.S. I have a workstation with no wifi network card. Just a standard network card with wire.