-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default DNS server doesn't work #280
Comments
|
the default CIDR don't overlaps with my local network, and at the moment I cannot test vpnkit because it fail to build |
I think I'm probably facing the same issue. ObservationsI was trying to go through the basic slirp4netns usage example and found out that the builtin DNS server does not work for me:
Then, on the host, slirp4netns starts up fine:
Back in the namespace, both tap0 interface and routing table look fine to me:
Then I bind mount an appropriate resolv.conf file:
but resolving DNS won't work:
However, it's not a networking/ip/routing issue, as DNS resolving e.g. via Google nameserver works:
When I start slirp4netns with Furthermore, 10.0.2.3 is pingable:
DebuggingAmong the things I've done to find out the cause of the issue are e.g. the following, see below. Currently, I'm somewhat out of ideas for how to proceed any further for finding out what's going wrong. Is there any way to have slirp4netns print more debugging info regarding DNS setup? Is there any documentation of how slirp4netns implements the DNS server it provides / how the setup works? I'd be happy if someone pointed me to the right docs/info/whatever. Change CIDRI've also tried a different CIDR to rule out that it has anything to do with overlapping CIDRs on my host. Changing the CIDR to 172.28.28.0/24 changed nothing. iptablesI've also explicitly injected iptables rules both on the host & namespace to make sure any traffic is allowed:
To no avail. MTUI've tried to leave the MTU at the default of 1500, but that doesn't change anything either. EnvironmentI'm running the following software. If I'm missing any info, just let me know, I'll be happy to add it. slirp4netns
OS
Network configI'm using NetworkManager on my host:
There don't seem to be any network namespaces on my host, as running DNS configI'm not using a local DNS resolver, the /etc/resolv.conf on my host points directly to my internet provider's DNS hosts, however, these are only available via IPv6 as it seems:
There are a few instances of dnsmasq listening on my host. I think docker starts up those:
podman info
|
Did anyone in this issue ever resolve the problems? |
Also experiencing the same issue with a rootless docker install on nixos. dns resolution doesn't work from the containers. |
Discussed in: |
I have problems with DNS resolution inside the sandbox while trying to use rootless docker and containerd+nerdctl.
I've tried to run a shell inside the sandbox to debug the problem and I found that the default DNS resolver doesn't works (10.0.2.3, reported inside
/etc/resolv.conf
), but its IP respond to ping.rootlesskit --state-dir=/run/user/1000/tmp --net=slirp4netns --mtu=65520 --slirp4netns-sandbox=auto --slirp4netns-seccomp=auto --disable-host-loopback --port-driver=builtin --copy-up=/etc --copy-up=/run --copy-up=/var/lib --propagation=rslave bash
The text was updated successfully, but these errors were encountered: