Live data from Hacker News

.localhost Domains

inclouds.space

211–212 of 212 posts

Re: .localhost Domains

#211

Earlier quoted context omitted.

It's not, just a different way of satisfying the certificate challenge. Look into a DNS-01 challenge vs a HTTP-01 challenge. Let's Encrypt has a good breakdown: https://letsencrypt.org/docs/challenge-types/ .

Gotcha and that lets us avoid to expose internals? that seems like a win win win, I should totally do this!

Yeah that's right. You can use something like https://github.com/joohoi/acme-dns or something similar to validate the DNS-01 challenge.

Re: .localhost Domains

#212
post #129
post #124

Earlier quoted context omitted.

> Any subdomain of .localhost works out-of-the-box on Linux No, not here.

This usually happens because you have a Linux setup that doesn't use systemd-resolved and it also doesn't have myhostname early enough in the list of name resolvers. Not sure how many Linux systems default to this, but if you want this behavior, adjust your NSS configuration, most likely.

You don't need systemd-resolved for .localhost domains to work. It works on systemd-based distros using another resolver as well as non-systemd distros.

I've never seen this not-work on any distro, must be a niche thing.

Post reply on HN