mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
A private hosted zone's CNAME, or alias A record, whose target is one of Floci's own names (localhost.floci.io, localhost.localstack.cloud, the configured hostname, the extra DNS suffixes) resolved to InetAddress.getLocalHost(). That lookup takes the first of the container's networks by name, so after Floci restarts still on a network it made, an EMR cluster's or an EC2 VPC's, it could answer with Floci's address there, one the container asking is not on, as #7636 found for the embedded DNS server's own address. The record source now answers with the address the embedded DNS server answers those names with itself, which #7636 has it take from CurrentContainerNetworkResolver, so a record pointing at one of Floci's names resolves as the name does. getLocalHost answers only where that server has no address.