.test tld

Originator:sebastian.alexander.schmidt
Number:rdar://47536051 Date Originated:January 25 2019
Status:Open Resolved:
Product:macOS + SDK Safari Product Version:12.0.2 (14606.3.4)
Classification:Bug Reproducible:Always
 
Area:
Safari

Summary:

In my local web development I'm using the .test tld but safari is determined to search the web instead of loading the webpage
As a work around I can use the .local or .localhost tlds (note I used to use .dev before google acquired it)

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

Is this internet behaviour? I think the .test domain for local development is a perfect example for what I assume it's intended use is

https://tools.ietf.org/html/rfc6761#section-6.2

Steps to Reproduce:

* insert "127.0.0.1 test" into the /etc/hosts file (`sudo nano /etc/hosts`)
* run a web server using *.test. as a domain (I used valet https://github.com/laravel/valet)
* open a domain that is under the test. TLD in safari: example.test

Expected Results:

* The sample webpage is opened
 
Actual Results:

* Safari searches the web using the chosen search engine for "example.test"

Version/Build: Version 12.0.2 (14606.3.4)

Configuration: N/A

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!