From a80134f6ff15867c170b0b582cb26a92fb33cb65 Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Tue, 17 Nov 2026 07:12:52 +0400 Subject: [PATCH] nixos: Podman DNS on every container network The NixOS Podman module opens DNS (aardvark-dns, port 53) on podman0 only. CI jobs and compose stacks run on networks of their own, whose bridges are podman1, podman2 and so on, so their containers could not resolve anything. The first CI run on the converted asxpio-services failed this way: nix could not reach cache.nixos.org. The rehearsal jobs had not downloaded anything, so it went unnoticed there. Open 53 on every podman* interface. Tried on the rehearsal host with a container on its own network. Assisted-by: Claude:opus-5-5 --- nixos/modules/podman.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nixos/modules/podman.nix b/nixos/modules/podman.nix index 27fb33d..90dfa93 100644 --- a/nixos/modules/podman.nix +++ b/nixos/modules/podman.nix @@ -22,7 +22,13 @@ virtualisation.oci-containers.backend = "podman"; environment.systemPackages = [ pkgs.docker-client ]; - # Podman's DNS for container networks, on each bridge's gateway + # Podman's DNS for container networks, on each bridge's gateway. The + # NixOS module opens it on podman0 only; CI jobs and compose stacks get + # networks of their own (podman1, podman2, ...). + networking.firewall.interfaces."podman*" = { + allowedUDPPorts = [ 53 ]; + allowedTCPPorts = [ 53 ]; + }; asxpio.security.ports = [ "tcp/53/aardvark-dns" "udp/53/aardvark-dns"