Hacker News new | past | comments | ask | show | jobs | submit login

But is "foo.localhost" a valid ___domain name, for cookies and such?



The RFC treats .localhost as a full TLD. I believe Windows does as well, as does Ubuntu (using default systemd-resolved), but macOS doesn't seem to resolve .localhost by default, necessitating the host file trickery.

Of course, in the early internet, the difference between a TLD and a host name weren't quite as clear as they are right now.


> I believe Windows does as well

I cannot ping xyz.localhost because it doesn't resolve it.


We still need the Public Suffix List because of how inconsistent it was




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: