Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm having some trouble with a VPS setup and DNS errors. Here's my current setup:

I have set up a WHM, under the name control.companyname.co.uk (anonymised).
The hostname of the WHM is set to control.companyname.co.uk. In WHM, the A record for the host name is set to my server main IP.

In the domain control panel, I have the root A record for companyname.co.uk pointing to the WHM server's IP. I also have the A record for control.companyname.co.uk pointing to the main server's IP.
In addition, I have spoken to the domain company and asked them to configure two nameservers on the account. So ns1.companyname.co.uk and ns2.companyname.co.uk

In the WHM control panel, ns1.companyname.co.uk and ns2.companyname.co.uk are shown as routed to the same IPs as in the domain control panel.

So, to me, being relatively inexperienced with server setup, this seems like it should work - everything seems to be connected up.

Here's the email I'm getting from the server:

Your hostname (control.companyname.co.uk) 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 control.companyname.co.uk. 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.

Am I missing something?

share|improve this question

1 Answer 1

If you NSLookup on the companyname.co.uk using an external nameserver does it return the correct entries (names servers and IP addresses) ?

this at least will tell you if your domain company has setup their end.

share|improve this answer
it fails. I just placed a support call with the domain company that holds companyname.co.uk –  Dan Hanly Nov 13 '12 at 17:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.