Skip to content

Register common DNS suffix (containers.internal) to podman container networks #641

@pemensik

Description

@pemensik

It would be very useful, if DNS cache on host could redirect whole subdomain used by one podman network from host's dns cache to network specific aarvwark-dns servers for each network.

I have noticed host.containers.internal is provided to podman images. It would be great, if containers.internal domain could be assigned to podman network. Then if one node with name nodeA should be accessed, it should register also nodeA.containers.internal.

If there should be more than one podman networks, each should have different search network. It could be for example nodeA.network-name.containers.internal. If the /etc/resolv.conf contains search network-name.containers.internal inside started node, then ping nodeB would work the same way as now, when only nodeB. is registered.

Important difference in this is that dnsmasq or unbound can forward one subdomain to specific server. By podman network inspect <network-name> can be obtained gateway IP, which usually runs DNS service with those registered names.

This would allow even from host to use ping nodeA.network-name.containers.internal to access pods in user-friendly way. If host would use search in resolv.conf also, it would be very pleasant to use with.

Is this already possible somehow? If not, what components need modification to implement this?

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