-
Notifications
You must be signed in to change notification settings - Fork 48
dnsname does not resolve hostnames of containers #59
Comments
At present, this is not the intent of |
Well, after testing the network alias feature, I can say that it should be optimal for my use case. Thank you very much for the heads-up.
Von: Matthew Heon ***@***.***>
Gesendet: Freitag, 12. März 2021 20:13
An: containers/dnsname ***@***.***>
Cc: Matthias Cotting ***@***.***>; Author ***@***.***>
Betreff: Re: [containers/dnsname] dnsname does not resolve hostnames of containers (#59)
At present, this is not the intent of dnsname - it is intended to be used with container names only. However, since Podman 2.2.x, we do now support network aliases, which can be used to add additional names the container can be resolved by using DNS. We cannot automatically add the hostname, but you could manually do so using the --network-alias flag. Is this sufficient?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#59 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIQQ5CXW22NOGXUVQJK7HQLTDJKRHANCNFSM4ZAJHNGQ> . <https://github.com/notifications/beacon/AIQQ5CVDRYRSH4DTLZTVTEDTDJKRHA5CNFSM4ZAJHNG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF6F5S4Q.gif>
|
Hi, I am in the process of transition to podman, trying to sunset docker usage in one of the projects.
|
@mariot8 Can you paste the output of |
The internal hostname of the container is not passed to dnsmasq, only the container name. Is it somehow possible to resolve the internal hostnames via dnsname?
EDIT: Some more Info
podman --version podman version 2.0.5 #podman-plugins Version: podman-plugins.x86_64 2.2.1-7.module+el8.3.1+9857+68fb1526
Example with a container:
Expected
Actual outcome
Thank you and kind regards
The text was updated successfully, but these errors were encountered: