[Webkit-unassigned] [Bug 160504] Localhost subdomains don't work
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Dec 31 17:35:54 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=160504
Michael FIG <michael+webkit at fig.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |michael+webkit at fig.org
--- Comment #16 from Michael FIG <michael+webkit at fig.org> ---
It seems from my testing that Safari uses macOS's default DNS resolution for `*.localhost`, which goes like:
1. check /etc/hosts (which doesn't support wildcards)
2. use the default network DNS server, provided by the network interface settings
This number 2 step is dependent on the good graces of your ISP or router hardware. Mine happens to resolve `*.localhost`, but that seems to be hit-and-miss, and unrelated to the client macOS version.
You can check yours with `dig example.localhost` for your default DNS server, or `dig @1.1.1.1 example.localhost` for an explicit query to a specific DNS server (like `1.1.1.1` or `8.8.8.8`).
Failed queries look like `status: NXDOMAIN`. Success has `status: NOERROR` and an `ANSWER SECTION:` with `example.localhost <expiry> IN A 127.0.0.1`.
As mentioned earlier, Firefox and Chromium-based browsers have builtin code that bypasses the default resolution for `*.localhost` and always return `127.0.0.1` in that case.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240101/4e3c05c6/attachment.htm>
More information about the webkit-unassigned
mailing list