Long time ago, I build an Ubuntu Linux virtual machine which was projected to be a reverse proxy server. It was my personal project which my boss gave the green light. Due to the urgency of other projects, I had to postpone it.
Now I decided to revisit this project because soon, we’re going to open up one of our intranet application to the public. Since I felt the machine quite out-dated, I decide to update it
$ sudo apt-get update
Sadly it didn’t work.
Hmm weird.. But I can ping 8.8.8.8 (Google public DNS)
So it means I don’t have DNS which will resolve the domain name to IP address. Thus I need to edit /etc/resolv.conf
sudo nano /etc/resolv.conf
Then added the following lines:
nameserver 8.8.8.8 #Google DNS nameserver 8.8.4.4 #Google DNS nameserver 208.67.222.222 #Open DNS nameserver 208.67.220.220 #Open DNS
That’s it. No reboot required.
loading...
About Hardono
Incoming Search
dns, linux