How to change the DNS resolvers on Hostinger VPS

Understanding what are DNS resolvers and how to add custom DNS resolvers for your VPS

Updated 2 days ago

A DNS resolver is a server that converts domain names into IP addresses. Without it, your VPS won’t be able to resolve domain names, meaning your website will still be reachable by direct IP address but not by its domain name. At Hostinger, we provide our own recommended DNS resolvers for your VPS by default. This is a separate setting from reverse DNS, which maps your IP address back to a domain name — see how to set up reverse DNS on VPS if that’s what you’re looking for.

How to change the DNS resolvers

While not recommended, you can still use your own DNS resolvers by navigating to the VPS section and choosing Manage next to your chosen server:

Then, open the Settings page:

Next, scroll down and select Change DNS resolvers:

Enter the new DNS resolvers on the IP address 1 and IP address 2 fields and click on Save DNS resolvers.

This feature works by automatically updating the resolv.conf file on your VPS; therefore, you won’t need to edit this file manually when specifying the new DNS resolvers.