systemd-resolved and aardvark-dns with disabled stub-resolver #25689
Unanswered
rheaalleen
asked this question in
Q&A
Replies: 1 comment 3 replies
-
aardvark-dns only reads resolv.conf on each container change (i.e. start/stop) and it currently does not have an active listener for resolv.conf changes. That also assume you use a recent version (debian 12 uses outdated stuff if you use official packages) Anyway it needs to be fixed containers/aardvark-dns#485 (first point) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I was deploying PowerDNS to Podman containers and did encounter some difficulties.
PowerDNS container: https://hub.docker.com/r/pschiffe/pdns-pgsql/
PostgreSQL container: https://hub.docker.com/_/postgres/
Iḿ running Debian 12 which has systemd-resolved enabled and has the stub-listener which occupies Port 53. With my playbooks the containers should use these ports so I disabled the stub in /etc/systemd/resolved.conf.d/disable-stub.conf with
Additionally in /etc/containers/containers.conf I specified the network_backend
[network] network_backend = "netavark"
The setup with the container was that they are in an internal network and the database is available through the container name without an open port on the host.
When I restart the systemd-resolved service the internal networking breaks, the dns containers cant reach the database over container names anymore, why?
Is the internal dns resolution tied to systemd-resolved + aardvark-dns?
How can I keep the internal network working so that the containers can talk to each other with their names when I disable the stub-resolver? While troubleshooting I've also found that while all containers are in an internal network the database containers can still resolve external domains (when systemd-resolve was running, i.e. google.com) but the dns containers couldnt.
Only difference was that the db/dns containers had different resolv.confs and that DB container is based on alpine and DNS container is Fedora
With enabled systemd-resolved but disabled stub and with/without specifying internal network the DB/DNS containers will resolve the container names when pinging to the WAN IP of the VPS.
Beta Was this translation helpful? Give feedback.
All reactions