Skip to content
Discussion options

You must be logged in to vote
$ podman run --name con1 --network testnet -d quay.io/libpod/testimage:20241011 sleep 1000
32b288aa5544e1789a59094f8b868f101326a927d2f8f96c6d5afca7ce1b526d
$ podman run --rm --network testnet quay.io/libpod/testimage:20241011 nslookup con1
Server:		10.89.2.1
Address:	10.89.2.1:53

Non-authoritative answer:
Name:	con1.dns.podman
Address: 10.89.2.2

Non-authoritative answer:

This should just work as long as you are using bridge networks and make sure the networks shows "dns_enabled": true, when you inspect it so it uses aardvark-dns to resolve the container names

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by marshallwp
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@marshallwp
Comment options

@marshallwp
Comment options

@Luap99
Comment options

@marshallwp
Comment options

@Luap99
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants