How to Fix a Domain Name That Points to the Wrong Website

Posted on

5 min read

A domain that points to the wrong website usually has a DNS problem, not a website problem. The domain name is fine, and the website is fine, but the mapping between them sends visitors to the wrong server. The fix is to find which record is wrong, correct it, and wait for the change to spread. Most cases are solved with one edit.

Before changing anything, confirm the symptom precisely. Does the bare domain show the wrong site while www works, or do both fail? Does the wrong site belong to your old host, your new host, or a stranger? Each answer points to a different record, and a precise symptom saves you from editing the wrong one.

An annotated diagram of the parts of a domain name
Parts of a domain name

Confirm What Is Actually Wrong

Open both the bare domain and the www version, and note what each shows. If one works and the other shows the wrong site, the broken one has its own bad record. If both show the wrong site, the main address record is wrong.

Check whether the wrong site is your old host. An old host often shows a default parking page or an old copy of your site. That means the domain still points at the old server.

Use an online DNS lookup tool to see the records the world sees. Compare the IP address shown with the IP address your host gave you. If they differ, you have found the problem. If they match, the DNS is fine and the problem is on the server, such as a missing virtual host entry for your domain.

Check the DNS Records

Log in to your DNS provider and open the records for the domain. Check the A record for the bare domain and the record for www. Each should point to the IP address of the server that hosts the site. A CNAME for www should point to the correct target, not to an old hostname from a previous host.

Look for duplicate records. Two A records for the same name send visitors to both servers in rotation, so half the visits land on the wrong site. This is the most common cause of a site that works for one person and fails for another.

Check the nameservers too. If the domain uses nameservers from your old host, edits at your new host will never take effect, because the world asks the old host for records. The domain registrar controls which nameservers are authoritative. Make sure they match the provider where you are editing records.

Check Propagation and Caching

After fixing a record, changes take time to spread. The TTL on the old record decides how long resolvers keep the old value. With a TTL of a day, some visitors will see the wrong site for up to a day. This is normal, and repeated edits will not speed it up. Wait out the TTL before concluding the fix failed.

Your own devices also cache DNS. A laptop that loaded the wrong site an hour ago may keep showing it even after the world has moved on. Flush the local DNS cache, restart the browser, or test from a phone on mobile data. A fresh device gives a truer picture than the one that saw the broken state.

Propagation checkers show the record from many locations at once. If most locations show the new address and a few show the old one, the fix is working and the stragglers will catch up. If every location shows the old address, the edit may not have saved, or you edited records at the wrong provider.

Check the Hosting Side

If DNS points to the right server but the wrong site still appears, the server does not know which site to serve for your domain. Shared servers pick a site by matching the requested domain against their configuration.

In the hosting panel, confirm the domain is added as a hosted domain and that the document root is correct. A domain added as a redirect will send visitors elsewhere even when DNS is right. A domain pointing at an empty folder will show a blank page or a default page. Both are panel fixes, not DNS fixes.

SSL can also confuse the picture. If the certificate covers www but not the bare domain, browsers may show a warning or a different site on the bare domain. Issue a certificate that covers both versions of the name. Most hosts do this automatically when the domain is added correctly.

When to Contact Support

Contact the host when DNS is correct but the server still serves the wrong site. Tell them the domain, the IP address the domain resolves to, and what the server shows. That single sentence gives them everything they need to check the virtual host configuration.

Contact the registrar when the nameservers are wrong or a transfer left the domain pointing at the old provider. The registrar controls the delegation, and only they can fix it if the panel is locked. Keep the ticket short and include a screenshot of the DNS lookup result.

After any fix, write down the correct records: nameservers, A records, and the host IP. The next time the domain points somewhere odd, that note turns a mystery into a five-minute comparison. Domains rarely break on their own, so the note usually reveals that one record changed during a move.

Still curious? The related reads below dig deeper, starting with Domain Name Setup: Best Practices for Success.

Reference: Points — Wikipedia

Related Articles: