Skip to content

Modify DNS Search Domain #945

Open
Open
@9p4

Description

@9p4

It seems that Netavark starts aardvark with the default DNS filter (.dns.podman). This should be customizable:

$ dig +short @10.88.0.1 container.podman.mycustomdomain
10.88.0.12

Aardvark sets the filter domain here:

https://github.com/containers/aardvark-dns/blob/8377c0a98bff609626cff273f829c34eca39ab08/src/main.rs#L69

This means that Netavark would need to set the filter domain here:

https://github.com/containers/netavark/blob/8377c0a98bff609626cff273f829c34eca39ab08/src/dns/aardvark.rs#L93

An optional entry in the network configuration that defaults to dns.podman would suffice here, much like this code:

let _ = response
.dns_search_domains
.insert(vec![constants::PODMAN_DEFAULT_SEARCH_DOMAIN.to_string()]);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions