The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem WHM and nameservers points to different domain.

Discussion in 'Bind / DNS / Nameserver Issues' started by antonelos, Sep 9, 2014.

  1. antonelos

    antonelos Registered

    Joined:
    Sep 9, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi to everyone and nice to meet you!

    Recently we transferred our domains to a new dedicated server with whm.
    We've been experiencing a problem since then. After the configuration of whm
    we created the nameservers ns1.foo.com & ns2.foo.com, but when someone hit those nameservers on the url bar (http://ns1.foo.com), returns the content of another domain inside the server (which by the way was the first domain i transferred to the new server). After that we tried to change the A records of ns1.foo.com & ns2.foo.com from DNS Functions > Edit DNS Zone to another IP that hosts the domain foo.com (because of an SSL), then the nameservers changed and were pointing to the subdomain example.foo.com instead of foo.com. We don't know what else needs to be done in order for the nameservers to resolve as supposed to e.g. foo.com.

    1. when hit http://ns1.foo.com on the url bar you see the content of foofoo.com
    2. when change the IP to the dedicated and hit http://ns1.foo.com you see the content of http://example.foo.com
    3. foofoo.com was the first domain transferred to the server and foo.com has a dedicated IP because of an SSL.

    Thank you for you time,
    Regards,
    Antonis.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    It's normal to see the contents of the default VirtualHost for an IP address when accessing a subdomain that does not exist in the Apache configuration. There is a thread on modifying the default VirtualHost at:

    Default content for IP address

    Thank you.
     
Loading...

Share This Page