-
I am running podman on FreeBSD. I can't resolve any hostnames in the container though. When I use ping to ping a hostname, it fails with "bad address", however when pinging the ip address, it succeeds. Steps to reproduce~ # podman run -it --os=linux --rm docker.io/alpine
/ # ping google.com
ping: bad address 'google.com'
/ # ping 108.177.15.101
PING 108.177.15.101 (108.177.15.101): 56 data bytes
64 bytes from 108.177.15.101: seq=0 ttl=103 time=11.769 ms
64 bytes from 108.177.15.101: seq=1 ttl=103 time=11.315 ms Container info/ # cat /etc/resolv.conf
nameserver 185.12.64.1
nameserver 185.12.64.2
System info
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I tried this locally and so far I can't reproduce the problem. It is possible that something isn't set up right with your pf config. Can you paste the contents of your |
Beta Was this translation helpful? Give feedback.
-
This seems reasonable (although I don't usually use much more than the podman nat and rdr rules. Next thing to check on packets containing DNS queries:
|
Beta Was this translation helpful? Give feedback.
This seems reasonable (although I don't usually use much more than the podman nat and rdr rules. Next thing to check on packets containing DNS queries:
tcpdump -i vtnet0 port dns