browse by category or date

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 (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 #Google DNS
nameserver #Google DNS
nameserver #Open DNS
nameserver #Open DNS

That’s it. No reboot required.

GD Star Rating
How To Change DNS Settings in Linux, 3.0 out of 5 based on 1 rating

About Hardono

Hi, I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

No Comment

Add Your Comment