-
Notifications
You must be signed in to change notification settings - Fork 117
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
Domain names inside private network not resolving through vpn #19
Comments
Thanks for the report and uploading the diagnostic logs. Could you paste the contents of My theory is that your VPN software has updated the Mac system configuration database with new resolvers so new IPs should be visible in |
@djs55 BUT it does look like resolv.conf is not getting its search domain updated once I've connected to the VPN, while scutil -dns is. Is that suppose to be updated dynamically in resolv.conf? |
+1 I often got DNS-problems because I use docker-registries which are only known on private DNS-servers. Then I have to manually edit my resolv.conf.... It would be useful if docker would use the dns which osx is using. Is there a special reason why docker is not already behaving like this? |
Another use case besides VPN is a company network that forces to use the local DNS and doesn't allow direct access to Google or other public DNS. My containers still have Google DNS in resolv.conf, but the local DNS servers are 10.x.x.x. addresses. Once I update the resolv.conf of my containers to the local DNS, everything works flawlessly. |
In my company's setup, my host laptop gets a company-wide search domain added to In the Moby linux internals, it seems that the VM's dhcp client, I'm pretty sure the issue lies in |
I did yesterday an update to the current beta-version. In the release-notes was a notice for this issue. Seems they're now using the system-dns-network-settings-stuff. On my mac-docker it's working now. Can you confirm it? |
Looks like this is still an issue for me. The image being built is still not using the vpn search domains. |
Still an issue for me as well, despite my great excitement that it might be fixed after seeing the release notes. However, I have come up with a much less hacky set of initrd changes that generically fix the problem. Patch to the initrd is attached, along with a patched The idea is the following: the VM has access to the host's This only works after the host filesystems have been mounted with FUSE, however, which is why the changes to the |
@djs55 is there any kind of milestone/expected progress for this issue? |
Unfortunately this won't be fixed in the next beta (due today), but I am investigating. I made an initial attempt to extend the DHCP offer with the search domain option, but somewhere in the chain the setting was dropped. I then realised that DHCP isn't a great place to put this information because we'd like the setting to update immediately when the Mac setting changes and a DHCP offer has a non-negligible associated lease time. Therefore I'm now investigating adding an |
@djs55 I have the issue too, and the cisco vpn client we use doesn't update |
Quick update on this issue:
I'll ping the issue again when beta25 is out and available for testing. Thanks for all your patience (and offers of help) so far! |
OK, beta 25 has been released! The only thing to watch out for is the search domains, while they are persistent, they aren't updated dynamically. In beta 25 it's necessary to restart the app for them to take effect. We'll hopefully fix that in future -- there was a patch to do it live but it caused some regressions and had to be reverted. Let me know if it works for you! Feel free to open a fresh issue if something goes wrong. |
this is not working with beta25 even after restarting docker for mac |
I have the similar issue. Containers can't resolve internal names.
|
@djs55 This is still an issue for me in the original scenario described in this ticket. |
hey @djs55 can you please clarify why this issue has "fixed" state? This is still an issue at least for me. I there a workaround, which I missed? |
I have same issue (Beta 42) - When I connect to VPN - containers can not resolve internal hosts. |
I’m still seeing this issue as well, in 17.03.1-ce-mac5 (16048). |
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 for mac should resolve through VPN connection
Actual behavior
Docker seems oblivious to currently open VPN connection
Information
Diagnostic ID: BBD3F7BF-C35D-4FB9-AB04-80ADBD8DBB9B
Docker for Mac: 1.12.0-beta21 (Build 10868)
macOS: Version 10.11.6 (Build 15G31)
[OK] docker-cli
[OK] app
[OK] moby-syslog
[OK] disk
[OK] virtualization
[OK] system
[OK] menubar
[OK] osxfs
[OK] db
[OK] slirp
[OK] moby-console
[OK] logs
[OK] vmnetd
[OK] env
[OK] moby
[OK] driver.amd64-linux
Steps to reproduce
Example docker file:
The text was updated successfully, but these errors were encountered: