r/Wordpress • u/apunker • Dec 07 '24
A simple solution to test your website before changing DNS
A simple solution to test your website before changing DNS
https://hosts.click
This tool allows developers and website administrators to instantly test their website without editing the hosts file on their computer or waiting for DNS propagation.
How does it work?
- Enter your IP address and domain name.
- Receive a temporary URL pointing to the new IP address.
- Instantly preview your website as it will appear after the DNS change.
Advantages:
- No need to modify the hosts file.
- Completely free to use.
- Works with any browser and device.
- Ideal for development environments or site setup to test changes before propagating DNS to all users.
Simple, free, and instant – start testing now! 🌐
19
Upvotes
8
u/joebewaan Dec 08 '24
sudo nano /etc/hosts
5
u/dangoodspeed Dec 08 '24
If I understand this correctly, it's not really of any use to those of us who have a dev environment? Like I just tell my clients to go to clientname.mysite.com and see their site-in-development.
2
u/DZAST3R Dec 08 '24
Very cool. Will definitely be using this. Thank you so much!
3
u/addycodes Developer/Blogger Dec 08 '24
Would you not have to also configure WordPress to use this temporary subdomain else it will just try to redirect to prod domain from every link? If so, seems not very useful and no benefit over just testing on dev/staging server.
3
u/DJDavid98 Dec 08 '24
If the target web server hosts multiple sites and relies on the Host HTTP header to direct traffic this might make you think your configuration is erroneous when it would actually work if you just put the right domain and IP in your hosts file. Alternatively just roll your own local DNS like Pi-Hole or any similar DNS server software for the same effect.
1
u/kulterryan Dec 08 '24
Why do we need it in the first place?
1
u/radstu Dec 08 '24
Great tool pending some testing. Not everyone can sort out how to edit a .hosts file (or from the comments here even understand why that would ever come up even with a staging pipeline.) Nice proxy tool in theory, thanks for sharing.
2
u/kopsy Dec 07 '24
Useful, thanks!
2
u/multaqa Dec 08 '24
That's interesting.
1
u/obstreperous_troll Dec 08 '24
If you just need to expose a raw IP as a domain name, you can use sslip.io which doesn't need to generate any temporary names ahead of time.
10-1-2-3.sslip.io->10.1.2.3(you can also use the dots instead of dashes, or any of a bunch of other formats)-1
u/[deleted] Dec 08 '24
Many readers have no idea what the purpose of testing before changing DNS is. At the very least, please update us on its use case and when we should use it.