Safari 5.1 no longer recognizes local domains registered with dscl

Originator:agiletortoise
Number:rdar://9834944 Date Originated:25-Jul-2011 01:11 PM
Status:Open Resolved:
Product: Product Version:
Classification:Serious Bug Reproducible:Always
 
25-Jul-2011 01:11 PM Greg Pierce:
'Directory Utility.jpg' was successfully uploaded

25-Jul-2011 01:11 PM Greg Pierce:
Summary:

Local domains registered with Directory Services under /Local/Default/Hosts are no longer recognized by Safari. These host domains worked fine in prior versions of Safari (<5.1) and continue to work fine in Firefox, Chrome and other browsers.  When one of these domains is accessed in Safari, it now spins and spins and loading activity monitor, and never loads any content.

Steps to Reproduce:

1) Register a 127.0.0.1 local domain under /Local/Default/Hosts in the Directory Utility, or via dscl command line tool (see attachment for sample):

/usr/bin/dscl localhost -create /Local/Default/Hosts/devsetup.local IPAddress 127.0.0.1

2) Open Safari, attempt to load "devsetup.local"

3) Watch the never ending load indicator.

4) Open Firefox/Chrome, load "devsetup.local" -- see your local Apache "It Works" page.

Expected Results:

Safari will recognize the 127.0.0.1 local host and make a request to Web Sharing/Apache on the localhost.

Actual Results:

Nothing.

Regression:

Same settings worked in all prior versions of Safari.

Comments

For what a +1 is worth, this is also affecting me on an upgraded installation of Snow Leopard to Lion; under the exact same circumstances as above.

By lee.hambley at July 31, 2011, 12:09 p.m. (reply...)

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!