Adding a new domain to the server fails with the error:
This domain points to an IP address that does not use the DNS servers
associated with this server. Transfer the domain to this server's
nameservers at the domain's registrar or update your system to recognize
the current DNS servers.
This error occurs when the domain you are adding is pointing to a remote host not associated with the server.
There are three workarounds available for this issue.
1. Update the domain registrar to point the domain to nameservers that are already pointed at the server (see: How to configure nameservers in a cPanel & WHM server)
2. Log into WHM and navigate to WHM > IP Functions > Configure Remote Service IPs, click "Remote Name Server IPs", then enter one of the IP addresses that one of the domain's nameservers resolves to. You can use an online tool to look up the nameserver IP address, or the dig utility:
# dig cpanel.net NS +short
# dig hg.cpanel.net +short
In the above case, you would enter just "220.127.116.11" in the box, then click Save.
3. [Not Recommended] Allow remote domains in general. To allow this, the "Allow remote domains" option would need to be enabled within WHM before creating an addon domain that is considered "remote". To do so:
- Access WHM
- Access "Tweak Settings"
- Search for the option "Allow remote domains."
- Enable this option and save from "Tweak Settings"
It might be best to only enable this setting only temporarily to add the domain, and then disable it. Refer to the description of the setting:
- Allow creation of parked/addon domains that resolve to other servers (e.g. domain transfers) This can be a major security problem. If you must have it enabled, be sure not to allow users to park common Internet domains.