-
-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What would be a better tld than .dev? [Feedback welcome] #218
Comments
.local |
Hmm thought about this one too, but it seems to be used by other tools as it's quite common and to have some particular behavior on OS X (searched for |
.test or .localhost maybe |
.test is nice since it's short, but it feels weird because I would associate it with testing. Local servers would look like this then: http://app.localhost
http://express-app.localhost
# ... BTW, got another suggestion for .localhost on Twitter |
It's a shame .🏨 can't be used haha. Beyond the above I can only imagine using 'hotel' terms. Such as |
From https://twitter.com/wmhilton/status/900694844976320512 and a list of already registered domains |
Totally agree :D that would be way easier. Nice ideas, I haven't thought of them. |
http://www.faqs.org/rfcs/rfc2606.html - reserved TLDs guaranteed to never collide:
|
|
Localhost seems like a dangerous choice. I like the shorter ones as suggested by @indrakaw ( |
@EvertEt I don't see that as a problem since the proxy is literally trying to point at localhost, and it's only HTTP_PROXY that assigns semantic meaning, which existing deployed software wouldn't use anyway. |
What would you think of |
.build ? |
What about a 2 letter domain, since those seem to be used for countries only, and it's less probable to have conflicts in the future ? The only combinations with H so far are One might use even more infrequent combinations, e.g. something with vowel only, since the only |
@aadrian |
A few other ideas for hotel related terms are:
|
@Tom-Julux, don't forget: |
What about
|
more info about |
these domains are safe to use:
|
because |
i'm for localhost |
Was thinking also about |
I think If people want to start pointing other hosts on their network at some instance of hotel's proxy file, then they can still twiddle the |
https://tools.ietf.org/html/rfc2606
Alternatively, don't use a domain at all, e.g. |
@typicode If you are gonna change the tld, wouldn't it be a good idea to do something like: app.ho.tel This way, you could maybe include a wildcard https certificate for the domain ho.tel so it's easier to trust the certificate for all hotel domains |
This was not a problem a few versions back, but Chrome 61 decided to stop loading service workers, if it can't validate the certificate. It will load the page, scripts, and all other resources, except for service worker scripts. The error is There is a flag in Chrome allow-insecure-localhost: "Allows requests to localhost over HTTPS even when an invalid certificate is presented. #allow-insecure-localhost". Enabling this flag solves the issue, but you have to use |
HTTPS will also be forced in Chrome https://ma.ttias.be/chrome-force-dev-domains-https-via-preloaded-hsts/ |
@assaf Nice research. |
@assaf good to know! |
@entropitor Nice idea. I don't know if there could be some side effects to it. |
Either |
I really like both Should we also consider |
what about .clerk? |
.test is bit weird but nice and short. |
Bit late to the party I know, but here are some ideas:
I'm using |
When will this be decided? |
Source: https://ma.ttias.be/chrome-force-dev-domains-https-via-preloaded-hsts/ You might consider removing the default tld |
|
|
Taking a moment to try to summarize the above... Any suggestion of tld other than @JimDabell 's Using an invalid tld - like Therefore using one of the specific exceptions seems like the only fix to the root cause of the issue. That gives us In total, |
With all that said, and taking #197 into account, is it worth discussing a default of It's more descriptive than just the tld and it seems relatively easy to include setup of a wildcard certificate for I haven't tried this myself, yet, but it seems like there may be some updates to handle second-level domains first, however. |
@lukehler on the contrary, if you want to test Service Workers in Chrome, with a self-signed certificate you have to use |
@lukehler thank you so much for this great summarization ; Having a |
Based on the different comments, I've finally gone with It seems to be the safest choice, as it's a reserved domain, should work better with Service Workers as @assaf explained 👍 and should avoid conflicts with bonjour service/local networking. Also many of you seem to like it :) See README for upgrading to Thank you EVERYONE for the all the great comments, ideas, researches and feedback! 👏 🙏 |
https://github.com/typicode/hotel/blob/master/README.md#L192 |
@EvertEt fixed, thanks 👍 |
I realize this issue has been closed and the decision was made to use https://bugs.chromium.org/p/chromium/issues/detail?id=489973 This means that, for example, pointing a |
Check out https://github.com/josh/launchdns It sets up a local DNS resolver, all .localhost domains resolve as 127.0.0.1 so you don't need to edit the hosts file. |
@assaf That's actually the problem I'm bringing up. That's specifically something I would not want. Chrome will not read a local
Chrome will simply point |
I see. I misunderstood the question. Yes, that's the drawback to Chrome giving localhost special treatment. |
It's 2019, what about |
Why this TLD ?
|
Since .dev is now own my mega ai, I use:
|
The status of
|
Since
.dev
is a registered domain, sometimes it creates problem on OS X + Chrome like this one:#215 ERR_ICANN_NAME_COLLISION
Unfortunately,
.hotel
is also a registered name ^^' so the next hotel default tld should be something unique and unregistered to avoid conflicts.What do you think would be a good tld for projects served by
hotel
:) ?Note: it can be anything there's no particular restriction for this local tld
The text was updated successfully, but these errors were encountered: