Skip to content

Container with network alias containing a space causes aardvark-dns crash #1019

Closed
@l-austenfeld

Description

@l-austenfeld

When you create a container that has a network alias containing a space, a malformed aardvark-dns config will be created that will cause it to crash.

❯ podman --version
podman version 5.1.1
❯ /usr/lib/podman/netavark --version
netavark 1.11.0
❯ /usr/lib/podman/aardvark-dns --version
aardvark-dns 1.11.0

Steps to reproduce:

  • podman network create test to create a network with dns enabled
  • podman run --rm -it --network test debian to create a working container. You can see a aardvark-dns process running in htop for example and dns requests in the container are working
  • podman run --rm -it --network test --network-alias "test alias" debian in a second terminal. If you observe the aardvark-dns process using htop it will disappear when the container is started and dns in both containers is now broken

Contents of /run/user/1000/containers/networks/aardvark-dns/test:

10.89.1.1
8965e883bfc09b4ce60728c66bc85ed62fa589218174dbbecca1a00dcf0eafc7 10.89.1.4  eloquent_keller,8965e883bfc0
f8bd2db9d504b780bd9b5567e2823ce99db12d207cf468d8614d36a9ba242231 10.89.1.5  goofy_wilbur,test alias,f8bd2db9d504

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions