-
Notifications
You must be signed in to change notification settings - Fork 287
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
Docker cannot resolve DNS name in the Linux Mode #2304
Comments
I'm having the same issue, not resolving names on our local network. if I
MobyLinuxVM
Previously on version Version 18.03.1-ce-win65 (17513)
MobyLinuxVM
|
I've just tried to SSH to MobyLinuxVM using this manual: https://blog.jongallant.com/2017/11/ssh-into-docker-vm-windows/ |
I compared logs c:\Users\ppavlov\AppData\Local\Docker\log* for both Docker 18.06.0 and 18.03.0 and found the vpnkit.exe updates incorrectly dhcp.json here c:\Users\ppavlov\AppData\Roaming\Docker.
I think this is a cause of the issue |
I have the same issue. |
I've made a prototype fix for this issue. If you'd like to test it the build is here: https://download-stage.docker.com/win/master/19209/Docker%20for%20Windows%20Installer.exe Let me know if this helps or not. If not, could you upload a set of diagnostics and quote the diagnostics id? Thanks! |
@djs55 commented on 2 Aug 2018, 14:25 BST:
It works now. Thanks a lot. I'll update this thread if I find anything else. |
Yes, it works for me too! Thank you! |
Thank you @djs55 . This fixed the issue for me as well. |
Hello @djs55, it is strange but the build 18.06.0-ce-win69 (19209) doesn't work correctly on another host. The host has the same build of the Windows OS - 10 1803 (OS Build 17134.165). I get the same error: "Error response from daemon: Get http://docker-proxy-ua:5000/v2/: dial tcp: lookup docker-proxy-ua on 192.168.65.1:53: no such host". |
Hi @djs55, |
Hi!
It was occurring, because the host had static network settings without DNS suffix.
Adding a suffix solved the issue. |
The fix has been released on both edge and stable
@pavlovpetr thanks for your update. To check if I understand correctly: you have a local registry with FQDN BTW thanks for all your help and for trying the experimental builds -- this really helped me. |
Hello
Yes, it is right.
This VM has manual network settings and some of them were incorrect. Thank you very much! |
@djs55 - did you get a chance to look at DB469F9E-AF0B-4EA5-ACAD-C1F248571CA6/20180807232723? I'm afraid 19209 did not fix the issue for me and a colleague on the same setup reported that the new edge/stable release won't start up at all for him :-( |
I'm having a similar issue - when I pull from our internal registry the Linux VM seems to use the google DNS server rather than our internal DNS server. Changing /etc/resolv.conf in the VM fixes this, but this state is lost the next time the VM is restarted. Nothing I change in the config makes any difference to the Linux VM DNS
I can reproduce this in the 18.06.1-ce-win73 prototype build (referenced above) in the current stable 18.06 build and also in the 2.0.0-beta1 build. Diagnostic Log submitted - 0BFB95E4-4745-4B05-A481-8330849134F5/20181009162530 Any advice on a fix/workaround appreciated! |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
This should be top on the priority list. Edit: |
I agree this was fix a while back |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
docker pull docker-proxy-ua:5000/oracle12:base
base: Pulling from oracle12
Digest: sha256:1ff8b14ae44042122108d166fd5260c8da2cd4b5d73c14afd247db5ad06e6127
Status: Image is up to date for docker-proxy-ua:5000/oracle12:base
Actual behavior
docker pull docker-proxy-ua:5000/oracle12:base
Error response from daemon: Get http://docker-proxy-ua:5000/v2/: dial tcp: lookup docker-proxy-ua on 192.168.65.1:53: server misbehaving
Information
Docker don't resolve DNS name of my local registry after latest update. It occurs in the Linux Mode only. But it works when I point the IP address of the local registry or full name docker-proxy-ua.mydomain.com:5000/oracle12:base.
The same situation inside of Linux containers, but when I added the record 'search mydomain.com' in the /etc/resolv.conf file - it resolved the name.
nslookup docker-proxy-ua
;; Got SERVFAIL reply from 192.168.36.30, trying next server
Server: 8.8.8.8
Address: 8.8.8.8#53
server can't find docker-proxy-ua: NXDOMAIN
After adding the record to the /etc/resolv.conf
nslookup docker-proxy-ua
Server: 192.168.36.30
Address: 192.168.36.30#53
Name: docker-proxy-ua.mydomain.com
Address: 192.168.36.37
I've temporary resolved this issue adding record in the 'hosts' file of Windows:
192.168.36.37 docker-proxy-ua
It seems that, the '/etc/resolv.conf' file inside of MobyLinuxVM doesn't have the record 'search'.
The text was updated successfully, but these errors were encountered: