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:
- Speed- public DNS resolvers are often faster than private DNS resolvers because they have a more extensive network of servers.
- Privacy- they do not track your browsing activity, which can help to protect your privacy.
- Security- often offers features that can help to protect your computer from malware and other threats.
- Used to block ads and malware. Public DNS servers can be configured to block ads and malware.
- 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: `18.104.22.168` and `22.214.171.124`
- Cloudflare Public DNS: `126.96.36.199` and `188.8.131.52`
- OpenDNS: `184.108.40.206` and `220.127.116.11`
- Quad9: `18.104.22.168` and `22.214.171.124`
Let’s now set custom DNS Resolvers in your VPS:
- Log in to your VPS control panel. In this case, we’ll use the CyberPanel. Use your correct credentials to ensure easy access.
- Find the DNS settings on your left side panel. Select Configure Default Nameservers, and on the next page, fill out the following:
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.