Different destinations for www.example.com and example.com
Hi.
I'm having issues with my domains & DNS settings on cpanel. If I use the domain www.example.com then it links to my website, whereas example.com (no www) goes to the defaultwebpage.cgi.
example.com pings to the dedicated server IP (Where my nameservers point to - ns1.example.com, etc)
www.example.com pings to a different IP - This is the dedicated IP of a cPanel account which hosts the content/website.
I'm unsure how to fix this, or what I've possible done wrong. Could it not yet have propagated properly? As the domain is fairly new (16 hours or so).
My server is hosted with OVH and the domain with crazydomains. I've changed the nameservers in crazy domains to point to ns1.example.com and ns2.example.com with the IPs of the dedicated server. The A record for the domain also points to the dedicated server IP for both example.com and www.example.com
Ideally I want the nameservers to use the dedicated server IP, and then put the website either onto the dedicated server IP or the IP of the cPanel account.
I tried changing the cPanel account IP from what it was, to the dedicated server IP but then both with or without www. it linked to the 'defaultwebpage.cgi'
Any help would be much appreciated, cheers.
Please sign in to leave a comment.
Comments
0 comments