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 “,” 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: `` and ``
  • Cloudflare Public DNS: `` and ``
  • OpenDNS: `` and ``
  • Quad9: `` and ``

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?