Skip to content
Sign In Create account

DNS

DNS propagation, and previewing a site with your hosts file

Why a DNS change isn't seen everywhere at once, and how to see the new site before everyone else.

1 min read Updated

When you change a record or your nameservers, the change is live on the nameservers within minutes. But networks and computers everywhere keep a copy of the old answer until its TTL expires. The time it takes for every copy to expire is called propagation.

ChangeUsually seen everywhere within
A record, CNAME, MX, TXTThe record's TTL — often an hour or less
NameserversA few hours, up to 48 in rare cases

During that time some visitors see the old site and some the new one. Nothing is wrong; it settles on its own.

See the change on your own computer

  • Open the site in a private window, or another browser.
  • Try from your phone on mobile data instead of your Wi-Fi.
  • Clear your computer's DNS cache: ipconfig /flushdns on Windows, sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder on macOS.

Preview a site before DNS changes: the hosts file

Your computer's hosts file overrides DNS for the names you put in it. Use it to see a site on its new server before you point the domain there.

  1. Find the new server's IP address — on Digipacket hosting, it's under Connection details.
  2. Open the hosts file as an administrator:
    • Windows: C:\Windows\System32\drivers\etc\hosts in Notepad, run as administrator.
    • macOS and Linux: sudo nano /etc/hosts in Terminal.
  3. Add a line with the IP address and the names:

    ``text 203.0.113.10 yourdomain.com www.yourdomain.com ``

  4. Save, then open the site. Your computer now goes to the new server; nobody else is affected.

Important

Remove the line when you're done. Left in place, it keeps sending your computer to that address long after DNS has moved on — a classic "the site works for everyone but me".

Still stuck?

Open a ticket from your control panel and say which step you reached. A screenshot of what you see is the fastest way to show us.

Still stuck

Nothing here fits? Write to us.

Tell us what you are trying to do rather than what went wrong, and we will tell you whether it is something we can fix from here.

  • Answered by a person

    There is no ticket robot in front of us. What you write is what somebody reads.

  • Say what you are trying to do

    The fastest answers come from the message that explains the goal, not only the error.

  • Your services are already in front of us

    Sign in first and we can see the account the question is about without asking you to describe it.