News for hackers. Stuff that matters.
Re:[email protected] by darkerside on Sunday September 27, 2020 @08:35AM (#24606178)
I've typically used example.com for testing, but link says it's just for documentation. Sounds like .test is the sanctioned way.

https://en.m.wikipedia.org/wiki/.test

Re:[email protected] by ryanbrunner on Sunday September 27, 2020 @08:44AM (#24606221)
In practice, is there any difference? As long as example.com is guaranteed to be reserved, I don't see any downside in using it.

Not using .test was a big problem for tools like Pow a while ago, but that's because they were using .dev, which had no official recognition as being reserved or special-purposed.

For e-mail addresses in particular, I could easily see a situation where your domain logic prevents you from using an invalid TLD (like .test), and it would be a shame to special-case something strictly for testing purposes.

Re:[email protected] by darkerside on Sunday September 27, 2020 @08:53AM (#24606268)
Probably not, but it's always nice to follow intended designs, since others will do so as well and this allows systems to evolve in compatible ways. There may be no difference today, but there could be tomorrow.

These days invalid TLDs don't really exist. New ones are getting released all the time. The only problem you'd run into is if the system you're using is treating .test differently for some reason, but that's likely not the case, for obscurity reasons if nothing else.

Re:[email protected] by srtjstjsj on Sunday September 27, 2020 @12:34PM (#24607885)
.invalid is guaranteed invalid by spec.
Re:[email protected] by darkerside on Sunday September 27, 2020 @02:19PM (#24608865)
Touche
Re:[email protected] by kubanczyk on Sunday September 27, 2020 @09:30AM (#24606467)
> In practice, is there any difference?

RFC 6761 says that there is a difference when I actually resolve these names. The example.com, example.net, etc. will resolve normally to an existent IP. Moreover they resolve the same way on every DNS cache.

The xxx.test will resolve as non-existent by default, unless you configure your own DNS specifically for them.

Re:[email protected] by joveian on Sunday September 27, 2020 @05:57PM (#24610445)
> unless you configure your own DNS specifically for them

or use horrible ISPs that redirect everything that isn't valid (and intercept DNS if you try to use an alternate DNS).

Re:[email protected] by darkerside on Sunday September 27, 2020 @11:26AM (#24607335)
I stand corrected
Re:[email protected] by paledot on Sunday September 27, 2020 @09:26AM (#24606439)
Well, example.com resolves, . test doesn't. Depending on your use case, one or the other may be desirable, but if you're setting up a dev environment, .test is your answer.
Re:[email protected] by benibela on Sunday September 27, 2020 @06:13PM (#24610550)
I've used example.com in the test cases of my webscraper. When they changed the links on the page, the test cases were failing, and I complained to them, but they did not care