+1 (506) 500-5957 sales@monovm.com Get US VPS for 50% OFF!

How to Change CentOS DNS Server [CentOS DNS Setting]

This article will go through the steps of changing CentOS DNS Server [CentOS DNS Setting] settings.

Posted: 29 Nov, 22 Updated: 05 Mar, 23 by Susith Nonis 1 Min

List of content you will read in this article:

This article is about how to change the CentOS DNS server. This article shows steps to help you change CentOS DNS server.

CentOS is a powerful and popular Linux distribution. Its popularity means many resources are available to users who want to configure and use it. Changing the DNS server on CentOS is relatively simple and can be completed in a few steps.

In this article, we will show you how to change the DNS server on CentOS. We will cover both the graphical and command line methods. Let's get started!

If you're looking to change your CentOS DNS server, there are a few steps you'll need to follow.

1. First, you'll need to open up the /etc/resolv.conf file in a text editor (Nano or VI).

nano /etc/resolv.conf

vi /etc/resolv.conf

2. Next, locate the line that starts with "nameserver" and replace the IP address that follows with the new DNS server's IP address.


3. Finally, save your changes and exit the text editor. That's all there is to it!

We hope this article has helped you change the CentOS DNS server. If you have any questions or comments, please feel free to leave them below. We will also love to hear from you if you have other tips or tricks for changing CentOS DNS servers. Also, if you need to test these commands in a real environment, you can order CentOS VPS from here.

Susith Nonis

Susith Nonis

I'm fascinated by the IT world and how the 1's and 0's work. While I venture into the world of Technology, I try to share what I know in the simplest way with you. Not a fan of coffee, a travel addict, and a self-accredited 'master chef'.