It turns out that some kind hearted people already set up wildcard domains for you already. You can use any domain below and/or any subdomain of these and they currently resolve to 127.0.0.1 but could switch at any time to resolve somewhere else. Here's the list of ones I know about. Let me know if there are more!
localhost
- It will always works. Do you know why? I hope so.[*.]fbi.com
- ๐ ๐ ๐ ๐ ๐[*.]localtest.me
[*.]127-0-0-1.org.uk
[*.]vcap.me
[*.]yoogle.com
[*.]lacolhost.com
[*.]local.sisteminha.com
- Managed by @tinogomesdomaincontrol.com
- See below comments for more domains
Of course, you can setup your own local domain.
sources:
- http://www.fidian.com/programming/public-dns-pointing-to-localhost
- http://blog.reenhanced.com/post/29566591244/developing-with-subdomains-just-got-a-lot-easier
- https://stackoverflow.com/questions/1562954/public-wildcard-domain-name-to-resolve-to-127-0-0-1
- https://markinns.com/archive/how-to-setup-a-local-dns-host-file-on-mac-os-x.html