Error: Your hostname could not be resolved to an IP address

If the DNS for your hostname is not set up correctly, you may get an email saying something similar to this:

Your hostname (srv.yourdomain.com) could not be resolved to an IP address. This means that /etc/hosts is not set up correctly, and/or there is no dns entry for srv.yourdomain.com. Please be sure that the contents of /etc/hosts are configured correctly, and also that there is a correct 'A' entry for the domain in the zone file. Some or all of these problems can be caused by /etc/resolv.conf being setup incorrectly. Please check that file if you believe everything else is correct. You may be able to automatically correct this problem by using the 'Add an A entry for your hostname' option under 'Dns Functions' in your Web Host Manager.

Most of the time, this error email is triggered by private name servers not being set up correctly.  It also could mean there are missing, corrupted or improperly formatted DNS records.

If you are using private name servers (optional on reseller & SEO Hosting and required on VPS and dedicated servers), then please check the following:

  1. Did you register your private name servers with your registrar with the correct IP addresses?
  2. Is there an A record for each of your private name servers?
  3. Are the correct nameservers listed in the DNS Zone for the domain using them? (DNS Glue)

If you are not using private name servers, or your private name servers are setup correctly, then you may be missing the A record for your hostname. 

  1. Login to WHM.
  2. Click on the DNS Functions icon or navigate to the DNS Functions section in the sidebar.
  3. Click on Add an A Entry for your Hostname
  4. Check to see if an A record exists:
    1. If an A record exists, it will be shown there. Make sure it is the correct IP address.  (Contact support if you are not sure.)
    2. If no A record exists, then use the Add Entry button to add the IP.  Make sure the correct IP is listed there before continuing.  This will add the missing A record.

On a dedicated server or VPS, you would also want to make sure the hostname exists in /etc/hosts as well.

If you continue having issues, then please contact support and we would be glad to assist you.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I log into the Web Host Manager? (WHM)

When you signed up for web hosting, the link to your WHM login page, and your username and...

What is a package?

A package is collection of predefined specifications which define what a user or domain may have...

How do I create a cPanel account?

Before you can create a new account, you must create a package in WHM. Once the package...

Manage DNS Zones

You can find this in WHM under DNS Functions. This area is for advanced users only, so...

About Reseller WHM

We provide all resellers with a limited WHM. These limits help us control what actions the...