DNS records resolving to wrong url

I’ve created a new staging copy of my siteground hosted site and added lets encrypt certificate. I’ve tried adding a CNAME record to alias my main url, and an A record with my server’s IP address, but DNS doesn’t resolve to the correct URL. I have purged the cache many times.

Most of my staging sites and my main site all resolve correctly, however newly created ones are not resolving. When i type in the URL of my staging site, it resolves to a completely unrelated business’s website.

That’s probably because the web server isn’t configured to recognize that CNAME hostname. So it just delivers some random (or first on the list) website from that shared server.

If you set that hostname to :grey:, it probably won’t work, either.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.