Skip to main content

How to Configure DNS Resolvers in WHM

Configure the DNS resolvers for your server in WHM to determine which DNS servers your server uses to resolve domain names. This configuration is essential for ensuring consistent and reliable name resolution across all hosted accounts.

Configure the DNS resolvers for your server in WHM to determine which DNS servers your server uses to resolve domain names. This configuration is essential for ensuring consistent and reliable name resolution across all hosted accounts.

Before you begin

You will need:

  • Server Administrator access to WHM

  • Root or administrative privileges to modify system-level network configurations

Configure DNS Resolvers

  1. Log in to WHM.

  2. Navigate to Server Configuration > Basic Networking > Configure DNS Resolvers.

  3. You will see a list of the current DNS resolvers. To change them, enter the IP addresses of the DNS servers you wish to use in the provided fields.

  4. Enter a primary and secondary resolver for each entry.

  5. Click Save to apply the changes.

Warning: Incorrectly configuring DNS resolvers can cause your server to lose the ability to resolve external domain names, which will result in a loss of connectivity for websites and email services.

Confirm the result

  • The system will display the updated list of DNS resolvers.

  • You can verify the change by running the nslookup or dig command from the command line to ensure the server is querying the intended IP addresses.

Limitations

This procedure updates the system-wide DNS resolvers. Changes made here affect all accounts and services on the server. If you require specific DNS resolution for a single account, you should manage that via the specific account's DNS zone settings.

Did this answer your question?