Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Prevent Unparked Domains Resolving on Dedicated IP

Discussion in 'Bind/DNS/Nameserver' started by Craig., Mar 7, 2018.

  1. Craig.

    Craig. Registered

    Mar 7, 2018
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator

    I've seen a couple similar threads but couldn't find a solid resolution to what I'm experiencing

    If I set up an account in WHM "" and give it the dedicated IP ""

    Then, I point an A record on "" to

    I can see the website content on and on

    This is all fine and as expected, however...

    If I then register the domain "" and point an A record to

    I can then access the whole website from

    How can I prevent an unrelated third party domain from resolving the website on a dedicated IP?

    I need the solution to be server wide, there must be a way to switch this behaviour off and only resolve domains that have been added in to cPanel/WHM

    #1 Craig., Mar 7, 2018
    Last edited by a moderator: Mar 7, 2018
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hi Craig,

    Here are a few third-party URLs you may find helpful:

    Block a random domain pointing at my dedicated IP
    How do I configure my Apache web server to respond only to requests made to it's domain name and not the IP address?
    How should I block unwanted domain names?

    Generally, the easiest approach to prevent this from happening is to setup a default VirtualHost entry for the dedicated IP address, but note this will prevent direct access to the website over the IP address.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice