3 ms·
If you're publishing a domain name that is supposed to be an example or test domain, there are some reserved TLDs for that! And you never have to register or m
by jawns 7y ago
If you're publishing a domain name that is supposed to be an example or test domain, there are some reserved TLDs for that! And you never have to register or maintain them!
https://tools.ietf.org/id/draft-ellermann-idnabis-test-tlds-00.xml#rfc.section.2 https://tools.ietf.org/id/draft-ellermann-idnabis-test-tlds-...
domain.example is encouraged for documentation, but you can also use something like example.invalid.
Whenever I review unit tests that have URLs in them, I insist that they use the .invalid TLD. I know that .test is encouraged, but I find that .invalid stands out more when you're browsing a test suite.
The old argument against this was that the average person is really only familiar with .com, .org, and maybe .net, and they wouldn't even recognize something with a less commonly used TLD as a domain name.
But with the rise in popularity of alternate TLDs, I don't think that argument is as persuasive anymore.
- donalhunt 7y agodomain.example doesn't actually resolve though... So if you want to demonstrate what a working domain looks like you need something else.
- scoot 7y agoexample.com, example.net & example.org should fit the bill in that case.
- edent 7y agoI think the issue is that they wanted people to check the DNS records of a real site.
- kube-system 7y agoexample.com resolves. example.com. 8367 IN A 93.184.216.34 https://www.iana.org/domains/reserved https://www.iana.org/domains/reserved