# Simulate a Website Launch
How to Simulate a Website Launch Using the “hosts” File on Your Mac
If you have make a DNS change to launch a new website, but you’d like to check the site out before the DNS change propagates you can do the following:
- Open terminal
- Use nano to edit the hosts file with this command (sudo nano /etc/hosts)
- You will need to enter an admin password to edit the file.
- Quit your web browser.
- Flush the DNS cache using the following command
sudo killall -HUP mDNSResponder;say DNS cache has been reset
- Try to visit the site.
- Under the steps above to put it back the way it was.