Error when creating add-on domain in cPanel

I was getting this error while trying to create an addon domain

===========
Using nameservers with the following IPs: x.x.x.x, x.x.x.x Sorry, the domain is already pointed to an IP address that does not appear to use DNS servers associated with this server. Please transfer the domain to this servers nameservers or have your administrator add one of its nameservers to /etc/ips.remotedns and make the proper A entries on that remote nameserver.
===========

The reason for the error message is that the add-on is currently resolving to another server and not using the DNS servers associated with the server where you are creating the domain.

This can be resolved by following the steps given below.

1. Login to WHM.

2. Go to Server Configuration >> Tweak Settings

3. Search for the option “Allow Remote Domains” under Domains and check the box corresponding to On.

4. Now go to cPanel and create add-on domain.

5. Revert the changes you have made in Tweak Settings.

Enabling the option “Allow Remote Domain” permanently is not recommended for security reasons.

Haneef Puttur

***************
# Nobody can do everything, but everyone can do something..

.