www and non-www pointing to different IP addresses?

Terrance

Member
Registered
Joined
Jun 30, 2016
Messages
33
Points
0
I have set up DNS records for my sites in WHM and added ns1, ns2 in my domain control panel

After 1 hour, DNS is udpated but I checked with ping command, it showed different IPs for www and non-www

for example, www is pointing to old IP address, non-www is pointing to new IP addresses.

Has anyone ever faced this problem? where can I find the problem to fix?
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
Nothing really to add here. Check your DNS zone data and just create a CNAME for yourdomain.com (it's just a alias)

for example:

Yourdomain.com IN A (your IP)
WWW IN CNAME yourdomain.com


Or just create two A records for www. and non www. pointing at the correct IP's.
 

Terrance

Member
Registered
Joined
Jun 30, 2016
Messages
33
Points
0
Thanks for supporting me!

I could solve the problem, to be honest I made an mistake!

I moved to a new VPS and still keeping old account from old VPS, I terminated an account for that website in WHM on old VPS

Also my PC has cached DNS and it's reason why I was seeing the website on old VPS.

I ran this command

ipconfig /flushdns
and used a "new incognito window" in Chrome to view my site then it is updated and the problem is fixed!
 
Latest Threads
Replies
0
Views
115
Replies
0
Views
65
Replies
0
Views
57
Replies
1
Views
87
Similar Threads

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top