Change DNS Settings On Linux

If the Domain Name Server(DNS) of your Linux VPS/server is misconfigured or you have a preferred DNS to use, article below will guide you on how to change the DNS settings for your Linux VPS.


Add nameservers to the Configuration File


Step 1

Open the DNS configuration file defined in /etc/resolv.conf with your preferred text editor. For example.

"vi /etc/resolv.conf"


"nano /etc/resolv.conf"  if you prefer using nano text editor


You will be greeted with screen as attached below:


Step 2

Replaced Default DNS and to your preferred DNS IP. 

For DNS Location In Malaysia, you can refer to :

For users using vi editor, press "i" or "INS" to start editing the file. Once done, press "Esc" followed with ":wq" to save and exit.



  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Phishing Attack-Unsuspension

If your account is found abusing the server and is suspended, you may request for an...

Monitor Server Resources

If you are facing a slow VPS, please monitor your VPS resource usage (CPU% and memory%).   Step...

No Remote Desktop License Servers Available

Windows Remote Desktop    “No Remote Desktop License Servers available” Error message fix...

How To Find Your Computer's IP Address On Windows

Step 1 Click the Start button, type "cmd," then press Enter.    Step 2 The Command Prompt...

What is VPS Control Panel

What is VPS Control Panel? Client Features:Full Power Controls inc Reboots, Power On & Off....