News for hackers. Stuff that matters.
Re:Ask HN: What TLD do you use for local development? by smt88 on Monday September 26, 2016 @12:16AM (#12579184)
It doesn't matter. Use anything fake/non-public.
Re:Ask HN: What TLD do you use for local development? by Viper007Bond on Monday September 26, 2016 @12:39AM (#12579277)
On the contrary, it does matter. What if you used [random].com and someone registered it? Presumably you'd use a different TLD and the chances are slim, but it's still best to use a correct test URL.
Re:Ask HN: What TLD do you use for local development? by smt88 on Monday September 26, 2016 @04:30PM (#12585280)
The chances would not be slim. They'd be zero, because you'd be using a fake TLD.
Re:Ask HN: What TLD do you use for local development? by Viper007Bond on Tuesday September 27, 2016 @02:01AM (#12587748)
.dev used to be a fake TLD, as did .local. Both now exist.

Don't assume what doesn't exist now won't exist in the future. ;)

Re:Ask HN: What TLD do you use for local development? by Sevrene on Monday September 26, 2016 @12:59AM (#12579338)
I agree that's it not really a big deal, but there are unforeseen consequences that can be mitigated by simply using the correct domain. So why not, what's to lose?
Re:Ask HN: What TLD do you use for local development? by smt88 on Monday September 26, 2016 @04:31PM (#12585286)
I don't know what "correct" means. There's no "correct" fake TLD. People use different things.

If you mean "correct" as in the production domain, then you're introducing a security risk for no reason. Never use a public (or potentially public) domain for testing or development.

Re:Ask HN: What TLD do you use for local development? by Viper007Bond on Tuesday September 27, 2016 @02:03AM (#12587751)
There actually are correct fake TLDs, specifically reserved for this exact use case: https://tools.ietf.org/html/rfc2606