mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
Lambda/CodeBuild containers get Floci's IP as their only DNS, so all public-name resolution flows through Floci's embedded UDP/53 forwarder. The forwarder read responses into a hardcoded 512-byte buffer, silently truncating larger EDNS0 responses (e.g. CDN-backed hosts), so public lookups failed inside Lambda with ENOTFOUND/EBUSY. - Enlarge the forwarder receive buffer to 4096 bytes (EDNS0). - Forward across an ordered upstream list (resolv.conf + configurable public fallbacks), returning the first valid response; warn when all upstreams fail instead of dropping the response silently. - Append configurable fallback resolvers (default 8.8.8.8, 8.8.4.4) after Floci's IP on spawned containers' HostConfig.Dns, controllable via floci.dns.container-fallback-* / FLOCI_DNS_CONTAINER_FALLBACK_*. Closes #1110