How To Set Custom DNS Resolvers In Your VPS

Do you want to set custom DNS resolvers in your VPS? This guide shows you how to and more.

A DNS resolver is a server that translates domain names into IP addresses. When you type a domain name into your web browser, such as “www.google.com,” your computer sends a request to a DNS resolver to find the IP address of the website. 

The DNS resolver then queries a series of other DNS servers until it finds the IP address of the website.

Without DNS resolvers, it would be impossible to use the internet. We must remember the IP addresses of all the websites we want to visit.

There are two main types of DNS resolvers: 

  • Public: Companies like Google and Cloudflare operate public DNS resolvers available to anyone. 
  • Private: Businesses and organizations use private DNS resolvers, which are only accessible to people within the organization.

Benefits of using a public DNS resolver:

  1. Speed- public DNS resolvers are often faster than private DNS resolvers because they have a more extensive network of servers.
  2. Privacy- they do not track your browsing activity, which can help to protect your privacy.
  3. Security- often offers features that can help to protect your computer from malware and other threats.
  4. Used to block ads and malware. Public DNS servers can be configured to block ads and malware. 
  5. Public DNS servers improve the performance and reliability of a user’s internet connection. Public DNS servers are often located in multiple locations, thus reducing latency and improving performance.

Here are some of the most popular public DNS resolvers:

  • Google Public DNS: `8.8.8.8` and `8.8.4.4`
  • Cloudflare Public DNS: `1.1.1.1` and `1.0.0.1`
  • OpenDNS: `208.67.222.222` and `208.67.220.220`
  • Quad9: `9.9.9.9` and `149.112.112.112`

Let’s now set custom DNS Resolvers in your VPS:

  1. Log in to your VPS control panel. In this case, we’ll use the CyberPanel. Use your correct credentials to ensure easy access.
  2. Find the DNS settings on your left side panel. Select Configure Default Nameservers, and on the next page, fill out the following:
set custom DNS resolvers in your VPS

These are default Google’s DNS.

Once done, click Save. Now proceed to flush your DNS  by rebooting the VPS. Upon reboot, the custom DNS is ready for use.

It’s that easy to set custom DNS resolvers in your VPS. Use it and reap the benefits of security and much more.

Was this article helpful?

Related Articles

Leave A Comment?