Yesterday I installed Ubuntu’s latest version for the first time in my life. It was no doubt a good experience. One thing that irritate me was, I was unable to connect to the internet. Thanks to our MIS department engineer who help me in getting out of the problem.
Here is what he did.
- Create resolv.conf in /etc/ directory and place the following code.
These should be the first two line of the resolv.conf file.
Here first line contain the DNS sever IP and the second line is for alternate DNS.
Now in terminal write
sudo vim /etc/network/interfaces
This will open interfaces file
This file should contain the following code.
iface lo inet loopback
iface etho0 inet static
dns-nameserver 22.214.171.124, 126.96.36.199
Keep in mind that the address are not real, you will need to make sure all these address are correct in your case.