
I built a tool to preview websites before DNS changes
When migrating a website to a new server, one of the annoying parts is testing the site before updating DNS records. Normally you have a few options: • edit your local hosts file • use curl with --resolve • temporarily change DNS The problem is that these approaches either: only work on your machine require admin privileges are difficult to share with teammates or clients So I built a small tool that makes this easier. etchosts.link It generates a preview link that routes a domain to a specific server IP while preserving the original Host header. This lets you preview a website exactly as it would behave after DNS changes, without editing your hosts file.
Continue reading on Dev.to Webdev
Opens in a new tab



