TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The days of .dev domains for testing code are over

73 pointsby micahgoulartover 7 years ago

24 comments

Animatsover 7 years ago
OK, so after a few pages of unnecessary history, the story is that Google bought the .dev TLD and uses it only for internal purposes.
评论 #15874362 未加载
评论 #15868512 未加载
评论 #15871757 未加载
评论 #15864638 未加载
JoshTriplettover 7 years ago
While this is an interesting exploration of the history of the Internet, gTLDs, HSTS, and various other things, the story boils down to this: never make up an unregistered domain&#x2F;TLD and assume it won&#x27;t exist in the future; always use a reserved test domain&#x2F;TLD from RFC 2606 (<a href="https:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;rfc2606" rel="nofollow">https:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;rfc2606</a>) or the updated RFC 6761 (<a href="https:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;rfc6761" rel="nofollow">https:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;rfc6761</a>): .test, .invalid, .example, or .localhost, depending on what semantics you need.
评论 #15863454 未加载
评论 #15863416 未加载
评论 #15863471 未加载
评论 #15863312 未加载
geofftover 7 years ago
&gt; <i>The other option is to change your .dev domain and never look back. But what domain could we migrate to? With the gTLD gold rush, is anything safe?</i><p>Just buy medium-devel.com or something and make it resolve to 127.0.0.1 in internal DNS. This gets you a couple of benefits:<p>- No one will ever take it from you<p>- You can configure it in external DNS if you&#x27;d like<p>- You can get a real, publicly-trusted SSL certificate for it, for free, because Let&#x27;s Encrypt can resolve DNS challenges against it<p>(By the way, you want to get an SSL certificate for internal development, because of the policy - Chrome-initiated but now followed by the HTML standards folks in general - to require HTTPS for fancy new features like geolocation and service workers: <a href="https:&#x2F;&#x2F;www.chromium.org&#x2F;Home&#x2F;chromium-security&#x2F;prefer-secure-origins-for-powerful-new-features" rel="nofollow">https:&#x2F;&#x2F;www.chromium.org&#x2F;Home&#x2F;chromium-security&#x2F;prefer-secur...</a> If you don&#x27;t have HTTPS of some sort, you can&#x27;t test these features locally.)
评论 #15863366 未加载
评论 #15864463 未加载
TheAceOfHeartsover 7 years ago
I absolutely hate this gTLD crap. The fact that companies can pick up any TLD on the global namespace is absurd. Even worse, the internet community never had a chance to object to these sales.<p>Something that pisses me off even more is that a few months back there was an IETF draft to specify the .home TLD to only resolve local network requests. It seemed pretty reasonable, but there was pushback and it was changed to home.arpa, since the .arpa TLD is already restricted. So big companies can pick up any TLD they want, but regular users will forever be forced to type in extra characters.
评论 #15863585 未加载
OskarSover 7 years ago
I had no idea you could buy gTLDs for internal company use. That’s outrageous, and ICANN should have rejected the application. I don’t mind the idea behind gTLDs, but the while thing has been handled pretty poorly.
评论 #15863933 未加载
评论 #15863649 未加载
ekimekimover 7 years ago
Having read <a href="https:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;rfc6761" rel="nofollow">https:&#x2F;&#x2F;tools.ietf.org&#x2F;html&#x2F;rfc6761</a>, I have a use-case which I&#x27;ve seen often but doesn&#x27;t seem to be covered: What TLD should I use for internal, production domains? ie. names that are only resolvable within my network, but are definitely not &quot;test&quot; domains and calling them .test would generate confusion.<p>Mostly I tend to see companies either inventing an unregistered TLD, often using their own company name, or they use &quot;.local&quot;, which can cause issues - some systems treat this name specially.<p>A third option would be putting all internal names under an &quot;internal.yourcompany.com&quot;, but that&#x27;s long and annoying.<p>Ideally I&#x27;d like to see a &quot;.private&quot; or &quot;.internal&quot; TLD recognised as special-use under the same semantics as &quot;.test&quot;. Does anyone have any better option?
评论 #15863908 未加载
评论 #15863761 未加载
peterburkimsherover 7 years ago
tl;dr - Google bought the .dev gTLD, specified it for internal use, and pushed changes in Chrome to require HTTPS.<p>Is that monopolistic behaviour?
评论 #15863364 未加载
评论 #15863272 未加载
评论 #15863396 未加载
Klunyover 7 years ago
Is this a real problem? Usually when I need a testing domain I make a subdomain on an address I or my company owns. dev.kluny.com. Easy.
评论 #15863665 未加载
评论 #15863570 未加载
koliberover 7 years ago
The article outlines two options. There is a third.<p>Lobby google through petitions and collective developer action to surrender their .dev TLD and create an RFC that makes it reserved for developer used, similarly to .example and .test.
评论 #15863475 未加载
评论 #15863666 未加载
brosky117over 7 years ago
I really enjoyed this piece. We don&#x27;t use .dev on my team so it allowed me to read it as purely educational. And it really was informative and surprisingly entertaining!
matt_wulfeckover 7 years ago
On a blog hosted at .engineering. Let’s just move away from all of these novelty Tlds.
throw2016over 7 years ago
Typical jerk move. This is not only taking the ball with you but closing the field and locking it requiring keys that only you have.<p>Not only is this problematic but so is HSTS, and the push for increasing reliance on CAs and in effect making self signed certs pointless.<p>The great concern for SSL by many people is simply ad supporting behavior masquerading as concern for privacy and state actors. Apparently ssl which is routinely mitm&#x27;d by small time corporations can protect privacy. Accept that with straight face while mitm vendors interests are paid attention to in standards meetings.<p>And Mozilla, the so called &#x27;defender&#x27; cashing in on the public good will whenever it suits them conveniently caves in to Google at every opportunity.
drefanzorover 7 years ago
Google will be buying up the 127.x.x.x ip range before you know it &#x2F;sarcasm
评论 #15863328 未加载
gremlinsincover 7 years ago
Wow, is it so hard to use a self-signed in your local dev config for nginx&#x2F;whatever? I have a bash script that auto-spins up a new dev environment ala: ng create something.dev apps&#x2F;php&#x2F;laravel&#x2F;app&#x2F;public -- auto makes a self-signed cert, reloads nginx, and should still work in new chrome, since it uses https.<p>Am I missing something or are they whining over nothing? I would get a little perturbed if only .dev domains show up if you&#x27;re on a google ip or something, but for now, using https is totally do-able.
reaperducerover 7 years ago
If Google is only using .dev internally, and there won&#x27;t be any public .dev domains, then who cares? As long as my hosts file routes .dev to the proper localhost nooks and crannies, nothing changes.<p>Unless you&#x27;ve bound yourself to Big G&#x27;s browser. We only use that for last-minute rendering tests because management doesn&#x27;t trust it not to leak info back to Mountain View.<p>Also, does Medium have a minimum word requirement? For some reason Medium articles always seem unnecessarily extra large.
levelover 7 years ago
Rather than maintaining a list of HSTS websites which isn&#x27;t cross-browser, why is there not an optional HSTS flag attached to the DNS response? I don&#x27;t know anything about DNS requests, so changing the protocol in a backwards compatible way might be impossible, but that seems like a much better way to maintain that information than with a separate list.
评论 #15863773 未加载
nhanceover 7 years ago
Just use lacolhost.com: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13749515" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13749515</a>
giancarlostoroover 7 years ago
In my job we use our hostname.ourdomainname.com for internal things, so I don&#x27;t see this problem as much. And it wont be accessible externally anyway.
mrmondoover 7 years ago
We still have a huge number of the dev environments running on .dev, needless to say we were pretty pissed off when Google were able to buy the TLD to use as they wish. Anyway, not much we can do about it now other than start the process of setting up a new subdomain and reconfiguring all our CI&#x2F;CD, Apps, Docs etc... I know we should have done it ages ago, there’s a ticket there for it... but resourcing.... <i>sigh</i>
nathan_longover 7 years ago
<i>Looks at `&#x2F;etc&#x2F;hosts`</i><p>:(
Zekioover 7 years ago
isn&#x27;t this solved by using Firefox instead?
评论 #15863778 未加载
评论 #15863577 未加载
评论 #15863717 未加载
dborehamover 7 years ago
Hmm. I have never seen this done or heard of it being done.
feelin_googleyover 7 years ago
&quot;Like a small child, your operating system believes in &quot;stranger danger&quot; and doesn&#x27;t trust self-signed certificates.&quot;<p>[ ] True [x] False<p>First, is it the OS that distrusts certificates, or is it the HTTP client?<p>Second, CA certificates such as the ones trusted by HTTP clients (contained in &quot;browsers&quot;) are self-signed certificates.<p>Pre-installed CA certificates in corporate HTTP clients (e.g., Chrome, etc.) and CA certificates in downloadbale &quot;bundles&quot; available from corporations (e.g., Mozilla) are self-signed.
grawprogover 7 years ago
As much as I agree with not using a public TLD as a dev environment, why the fuck was google allowed to register and privately secure not one but several domains for their own private use? Fuck them. That shouldn&#x27;t have been allowed, especially for a TLD that&#x27;s well known to be heavily used.<p>I really dislike allowing domains to be used in such a way. It seems extremely short sighted.
评论 #15863558 未加载