Skip to main content

Module resolve

Module resolve 

Source
Expand description

Name resolution for every client built here.

RFC 6761 reserves localhost and every name under it for loopback, and asks resolvers to answer them without asking DNS. systemd-resolved does; glibc’s own resolver, which a container usually has, does not, and layout.localhost fails there. A development zone and every test stack live under .localhost, so this answers those names itself and hands every other name to the system.

Structs§

Resolver 🔒
lookup_host as the resolver every client built here uses.

Functions§

is_localhost_name
Whether name is localhost or a name under it.
lookup_host
Every address name answers to at port: loopback for a localhost name, and the system’s answer for any other.