Page tree
Skip to end of metadata
Go to start of metadata

This document is for a previous release of cPanel & WHM. To view our latest documentation, visit our Home page.

For cPanel & WHM 11.46



If you experience DNS problems, ensure that the server has a list of functional resolvers. Resolvers allow your server to communicate with DNS servers in order to find IP addresses that correspond to domain names.

Add resolvers

If you need to add resolvers to your server, perform the following steps:

  1. Use your preferred text editor to open the /etc/resolv.conf file.
  2. If this file does not contain any resolvers, enter nameserver $IP in the file, where $IP represents the IP address of the resolver.


You should be able to obtain at least two resolvers from your data center.


Check resolvers

To make sure the resolvers function properly, perform the following steps:

  1. Open a terminal session.
  2. Run the following command, where can represent any domain.

  3. If results are returned to the server, the resolvers are properly configured.