Skip to main content

spawn_internal_dns

Function spawn_internal_dns 

Source
pub fn spawn_internal_dns(
    cfg: Option<&ComputeConfig>,
    backends: &BackendRegistry,
    deploy: &DeployStore,
) -> Option<JoinHandle<()>>
Expand description

Start the per-project internal DNS resolver task when it is enabled and the container backend + bridge are active. Binds UDP gateway:53 (the bridge gateway the container backend assigns), forwarding non-internal queries to compute.dns_upstream. Returns the detached task handle, or None when the resolver is off, the container backend isn’t present (nothing to serve names for), or the subnet/upstream is malformed. Linux-only: it binds a socket and is meaningful only where the container/bridge code runs; a non-Linux node returns None (the seam is compiled out).