3 ms·
Use .localhost pointing at 127.0.0.1 for local development. It is reserved for this purpose and obvious to everyone unlike .test. For reference your options ar
by hartror 9y ago
Use .localhost pointing at 127.0.0.1 for local development. It is reserved for this purpose and obvious to everyone unlike .test.
For reference your options are:
.test
.example
.invalid
.localhost
https://tools.ietf.org/html/rfc2606 https://tools.ietf.org/html/rfc2606
With only .localhost fitting the purpose of most people's usage of .dev.
- tomjen3 9y agoSo what if I want to test a website under development from my phone? .test is more correct.
- chairmanwow 9y agoThis sounds like a really useful thing to do. How do you set something like this up in a dev environment?
- deleted 9y ago[deleted]
- TwelveNights 9y agoIf you use Chrome and have an Android device which also has Chrome installed, you could check out this tutorial: https://developers.google.com/web/tools/chrome-devtools/remote-debugging/ https://developers.google.com/web/tools/chrome-devtools/remo...
- hartror 9y agoIf you are sharing DNS on a private network then the convention is .local. https://en.wikipedia.org/wiki/.local https://en.wikipedia.org/wiki/.local
- michaelsbradley 9y agoFor quick and dirty arbitrary localhost domain names, I setup localhost.dog. Try: dig any localhost.dog dig any thing.localhost.dog dig any you.want.localhost.dog I find it useful, though its uses are admittedly limited. TTL is 30 days, but some resolvers (e.g. Google's 8.8.8.8, 8.8.4.4) dial it back to 1 day.
- hartror 9y agohttps://icannwiki.org/.dog https://icannwiki.org/.dog
- michaelsbradley 9y agoWas there something specific on that page you thought merited attention?
- michaelsbradley 9y agoI realize now you may have not understood (because I wasn't clear) when I originally wrote "I setup localhost.dog". I meant that I registered the domain name, and setup the A,AAAA DNS records (including wildcards) to point to 127.0.0.1.
- hartror 9y agoAh right that makes sense.