-
-
Notifications
You must be signed in to change notification settings - Fork 405
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
DNS names that can't be resolved in Colima, possibly only with gvproxy network driver #466
Comments
I have the same issue. Reproduction Steps
Not Reproduction Steps
Reproduce if fqdn is more than 41 characters and non default docker network workaroundIn my case... open edit network.driver
|
Added youtube.com to the list in OP |
Notice that youtube.com worked for me, but www.youtube.com didn't work. 😉 |
Edited, thanks @renatho |
If indeed using |
I can add |
I would like to know if this is still the case for v0.5.0. |
Thanks. Fixed in my environment. |
I've observed sporadic failures with golang.org; I'm running on a 2021 Mac M1 Silicon using the vz virtualization driver. This manifests when using the devcontainer cli to build workspace images. $ yq '.network.driver' "$(colima template --print)"
gvproxy $ colima version
colima version 0.5.2
git commit: 6b5b6fe0540e708f0c9d6e8919fab292c671fc72
runtime: docker
arch: aarch64
client: v23.0.1
server: v20.10.20 |
this is still not fixed in 0.5.4 |
I got bitten by this today as well and I can confirm it only happens with gvproxy network. It appears some DNS queries fail for whatever reason. I am still investigating. |
Same here: When I: nslookup test.s3-website-us-east-1.amazonaws.com
Server: 192.168.107.1
Address: 192.168.107.1:53
Non-authoritative answer:
**server can't find test.s3-website-us-east-1.amazonaws.com: NXDOMAIN** But if I use Google's 8.8.8.8: nslookup test.s3-website-us-east-1.amazonaws.com 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8:53
Non-authoritative answer:
test.s3-website-us-east-1.amazonaws.com canonical name = s3-website.us-east-1.amazonaws.com
Non-authoritative answer:
test.s3-website-us-east-1.amazonaws.com canonical name = s3-website.us-east-1.amazonaws.com
Name: s3-website.us-east-1.amazonaws.com
Address: 52.217.87.195
Name: s3-website.us-east-1.amazonaws.com
Address: 52.216.27.3
Name: s3-website.us-east-1.amazonaws.com
Address: 52.216.98.42
Name: s3-website.us-east-1.amazonaws.com
Address: 52.216.243.67
Name: s3-website.us-east-1.amazonaws.com
Address: 52.217.140.13
Name: s3-website.us-east-1.amazonaws.com
Address: 52.216.57.53
Name: s3-website.us-east-1.amazonaws.com
Address: 52.217.10.139
Name: s3-website.us-east-1.amazonaws.com
Address: 52.217.137.173 If I change nw driver for: nslookup host.docker.internal
Server: 127.0.0.11
Address: 127.0.0.11:53
** server can't find host.docker.internal: NXDOMAIN
** server can't find host.docker.internal: NXDOMAIN |
@gpsa can you kindly open another issue for this? This is likely a bug. |
I could, but just to clarify, is the |
@gpsa I suspect your issue was changing the network driver of an existing VM. This is what I get for slirp, it uses DNS lookup as well.
|
@abiosoft Is there a way to recreate it without destroying everything? I could try to see if by recreating would work |
@gpsa yeah. It's a regression actually, used to work before. You can edit the In fact, it is the only entry in the file so you can simply replace it
|
@abiosoft thank you so much, that worked like a breeze. Now both internal Docker DNS and external domains work just fine on |
Could the DNS issues somehow be related to Alpine? From https://martinheinz.dev/blog/92:
|
@henrik242 I have actually read something similar before but I do not think this situation is related to Alpine, considering that As for why Alpine is the choice for Colima, you can check this comment #291 (comment). |
docker ps
Cannot connect to the Docker daemon at unix:///Users/user/.colima/default/docker.sock. Is the docker daemon running? |
@gpsa you're making a bit of a mess of this issue. Could you please open one that's on-topic for your issues? |
Sorry about that, I've then created a separated issue for the SLIRP one |
when starting colima with VZ vmtype and virtiofs and providing |
@abiosoft Multiple reports on weird musl dns incompatibility with glibc. I think it is safer to use base image like debian for this. |
I would like to use Debian as well to see if it resolves this issue for us. Is that possible? |
After some messing around, this seems to be the fix:
Change |
If anyone wants to switch, the following should also possible
Or edit No need for |
For me, after simply |
Hi! I started with @rfay just mentioned in DDEV discord the following:
So depends on how many updates happened in the meantime I guess? |
Just wondering, but Though the last time I tried it, it made no difference with virtual machine type |
Does this replace and save things in the current configuration before starting? Would be cool! (I'll try later, thanks for hint). |
I hit this while running a container which does a lot of AWS service requests. DNS resolution would fail after some time when using |
Same here, having issue while using vmType: vz and network drivers gvproxy or slirp still getting loads of error while trying to solve DNS, but I would say 50% of the requests fail. |
Hi, just wondering but which lima version are you using because #648 seems to be fixed - at least it looks like it so far - with the latest lima 0.18.x update and it was related to DNS as well, so it might also fix these issues? |
I'm still getting connection refused on 127.0.0.11 I don't have a local dns server on dev machines and I can't figure out what the solution is here. How do we avoid this? The latest version of Colima doesn't even have a driver field in the yaml file and I'm still having this problem. |
same here |
Description
I'm starting this issue so we can start to track down the specific DNS addresses that fail in colima/lima, and the sources of information. I get this question all the time, and tell people to use
--dns 1.1.1.1
and it almost always fixes. But I think we should start to track what they are so maybe we can solve this someday.Version
Colima Version: Various
Lima Version:
Qemu Version:
Operating System
Workarounds
Many people have reported in the comments that changing to the slirp network driver resolved the issue.
The text was updated successfully, but these errors were encountered: