Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I had a problem of changing an IP address of just one of the few addon domains on a cPanel/WHM account, but I managed to find a solution (by manually editing A records in DNS zones of the main account and the addon domain, and changing the IP in /var/cpanel/userdata/username/

However, this addon domain ( also had a subdomain attached to it (, so I replaced the IP in the A records for it too, and I also changed the IP via SSH in the above mentioned path.

Now both and are correctly resolving to the new dedicated IP and that's okay. But when I type this IP address in the browser, it loads the website instead of the main website.

I have no clue as to why is this happening. How do I change the main (primary, default) website of a dedicated IP address?


migration rejected from May 2 at 17:33

This question came from our site for computer enthusiasts and power users. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by masegaloeh, Hyppy, mdpc, Scott Pack, Jenny D May 2 at 17:33

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.