docker - Windows Containers hosted on Windows 10 lose their DNS -
i'm facing situation windows based containers lose ability resolve dns.
this happens
to start container test dns resolving docker run -it microsoft/windowsservercore powershell
from inside container
test-netconnection google.com -port 443
fails with
ps c:> test-netconnection google.com -port 443 warning: name resolution of google.com failed -- status: temporary error during hostname resolution , means local server did not receive response authoritative server computername : google.com remoteaddress : interfacealias : sourceaddress : pingsucceeded : false
but should this
ps c:\users\asarafian> test-netconnection google.com -port 443 computername : google.com remoteaddress : 216.58.204.14 remoteport : 443 interfacealias : vethernet (external virtual switch) sourceaddress : 10.98.5.139 tcptestsucceeded : true
i hybernate workstation (windows 10) , on operate hyper-v instances , docker. workstation windows 10 , can tell when problem happens uses dns ip of windows 10 host.
from within container
ps c:\> ipconfig /all windows ip configuration host name . . . . . . . . . . . . : c7c016e13be8 primary dns suffix . . . . . . . : node type . . . . . . . . . . . . : hybrid ip routing enabled. . . . . . . . : no wins proxy enabled. . . . . . . . : no ethernet adapter ethernet 2: connection-specific dns suffix . : description . . . . . . . . . . . : microsoft hyper-v network adapter #2 physical address. . . . . . . . . : deducted dhcp enabled. . . . . . . . . . . : yes autoconfiguration enabled . . . . : yes link-local ipv6 address . . . . . : fe80::bc61:e687:4676:353a%5(preferred) ipv4 address. . . . . . . . . . . : 172.19.143.229(preferred) subnet mask . . . . . . . . . . . : 255.255.240.0 default gateway . . . . . . . . . : 172.19.128.1 dhcpv6 iaid . . . . . . . . . . . : deducted dhcpv6 client duid. . . . . . . . : deducted dns servers . . . . . . . . . . . : 172.19.128.1 netbios on tcpip. . . . . . . . : disabled
172.19.128.1
windows 10 host ip.
at same time, when windows 10 host containers stuck, else resolves dns normally.
- any process on windows 10.
- hyper-v instances on windows 10.
- container's hosted on hyper-v instances on windows 10.
restarting machine doesn't fix problem. second time occurs. previous time had reset entire docker installation fix issue. avoid , understand problem , how fix it.
docker version is
c:\users\asarafian>docker version client: version: 17.03.1-ce-rc1 api version: 1.27 go version: go1.7.5 git commit: 3476dbf built: wed mar 15 20:33:22 2017 os/arch: windows/amd64 server: version: 17.03.1-ce-rc1 api version: 1.27 (minimum version 1.24) go version: go1.7.5 git commit: 3476dbf built: wed mar 15 20:33:22 2017 os/arch: windows/amd64 experimental: false
update 1 - 20170408
as per request of @chris-lawrence comment, following ipconfig /all
host , inside container. interesting aspect dns resolution works inside container.
inside container
ps c:\> ipconfig /all windows ip configuration host name . . . . . . . . . . . . : 476d22f638ea primary dns suffix . . . . . . . : node type . . . . . . . . . . . . : hybrid ip routing enabled. . . . . . . . : no wins proxy enabled. . . . . . . . : no dns suffix search list. . . . . . : home ethernet adapter ethernet 2: connection-specific dns suffix . : home description . . . . . . . . . . . : microsoft hyper-v network adapter #2 physical address. . . . . . . . . : 00-15-5d-53-0a-2a dhcp enabled. . . . . . . . . . . : yes autoconfiguration enabled . . . . : yes link-local ipv6 address . . . . . : fe80::ad59:83cc:6e64:944a%5(preferred) ipv4 address. . . . . . . . . . . : 172.19.132.10(preferred) subnet mask . . . . . . . . . . . : 255.255.240.0 default gateway . . . . . . . . . : 172.19.128.1 dhcpv6 iaid . . . . . . . . . . . : 83891549 dhcpv6 client duid. . . . . . . . : 00-01-00-01-20-7a-a9-d0-00-15-5d-53-0a-2a dns servers . . . . . . . . . . . : 172.19.128.1 192.168.0.1 netbios on tcpip. . . . . . . . : disabled
on container host
windows ip configuration host name . . . . . . . . . . . . : mecdevasar03 primary dns suffix . . . . . . . : global.sdl.corp node type . . . . . . . . . . . . : hybrid ip routing enabled. . . . . . . . : no wins proxy enabled. . . . . . . . : no dns suffix search list. . . . . . : global.sdl.corp sdl.corp maidenhead.sdl.corp sheffield.sdl.corp development.sheffield.sdl.corp irv.languageweaver.com languageweaver.com montreal.sdl.corp singapore.sdl.corp bray.sdl.corp seoul.sdl.corp idiominc.priv sdlproducts.com lan.lon.sdlproducts.com freetranslation.corp xyenterprise.com alterian.com ams.dev sdlntt.corp ethernet adapter vethernet (hns internal nic): connection-specific dns suffix . : description . . . . . . . . . . . : hyper-v virtual ethernet adapter physical address. . . . . . . . . : 00-15-5d-53-04-cb dhcp enabled. . . . . . . . . . . : yes autoconfiguration enabled . . . . : yes link-local ipv6 address . . . . . : fe80::f5c8:e8c7:1ad0:d845%26(preferred) ipv4 address. . . . . . . . . . . : 172.19.128.1(preferred) subnet mask . . . . . . . . . . . : 255.255.240.0 default gateway . . . . . . . . . : dhcpv6 iaid . . . . . . . . . . . : 436213085 dhcpv6 client duid. . . . . . . . : 00-01-00-01-1f-ad-0a-f4-18-db-f2-15-03-e7 dns servers . . . . . . . . . . . : fec0:0:0:ffff::1%1 fec0:0:0:ffff::2%1 fec0:0:0:ffff::3%1 netbios on tcpip. . . . . . . . : enabled ethernet adapter vethernet (external virtual switch): media state . . . . . . . . . . . : media disconnected connection-specific dns suffix . : global.sdl.corp description . . . . . . . . . . . : hyper-v virtual ethernet adapter #2 physical address. . . . . . . . . : 18-db-f2-15-03-e7 dhcp enabled. . . . . . . . . . . : yes autoconfiguration enabled . . . . : yes wireless lan adapter local area connection* 2: media state . . . . . . . . . . . : media disconnected connection-specific dns suffix . : description . . . . . . . . . . . : microsoft wi-fi direct virtual adapter physical address. . . . . . . . . : b8-08-cf-44-25-d9 dhcp enabled. . . . . . . . . . . : yes autoconfiguration enabled . . . . : yes wireless lan adapter wi-fi: connection-specific dns suffix . : home description . . . . . . . . . . . : intel(r) dual band wireless-ac 8260 physical address. . . . . . . . . : b8-08-cf-44-25-d8 dhcp enabled. . . . . . . . . . . : yes autoconfiguration enabled . . . . : yes link-local ipv6 address . . . . . : fe80::6d3a:ef28:a057:6108%18(preferred) ipv4 address. . . . . . . . . . . : 192.168.0.103(preferred) subnet mask . . . . . . . . . . . : 255.255.255.0 lease obtained. . . . . . . . . . : saturday, 8 april 2017 16:17:24 lease expires . . . . . . . . . . : saturday, 15 april 2017 16:24:09 default gateway . . . . . . . . . : 192.168.0.1 dhcp server . . . . . . . . . . . : 192.168.0.1 dhcpv6 iaid . . . . . . . . . . . : 45615311 dhcpv6 client duid. . . . . . . . : 00-01-00-01-1f-ad-0a-f4-18-db-f2-15-03-e7 dns servers . . . . . . . . . . . : 192.168.0.1 netbios on tcpip. . . . . . . . : enabled ethernet adapter bluetooth network connection: media state . . . . . . . . . . . : media disconnected connection-specific dns suffix . : description . . . . . . . . . . . : bluetooth device (personal area network) physical address. . . . . . . . . : b8-08-cf-44-25-dc dhcp enabled. . . . . . . . . . . : yes autoconfiguration enabled . . . . : yes tunnel adapter isatap.global.sdl.corp: media state . . . . . . . . . . . : media disconnected connection-specific dns suffix . : global.sdl.corp description . . . . . . . . . . . : microsoft isatap adapter #2 physical address. . . . . . . . . : 00-00-00-00-00-00-00-e0 dhcp enabled. . . . . . . . . . . : no autoconfiguration enabled . . . . : yes tunnel adapter isatap.{5c890aae-6e73-44bb-bb1e-de8eb4794bf8}: media state . . . . . . . . . . . : media disconnected connection-specific dns suffix . : description . . . . . . . . . . . : microsoft isatap adapter #3 physical address. . . . . . . . . : 00-00-00-00-00-00-00-e0 dhcp enabled. . . . . . . . . . . : no autoconfiguration enabled . . . . : yes tunnel adapter isatap.home: media state . . . . . . . . . . . : media disconnected connection-specific dns suffix . : home description . . . . . . . . . . . : microsoft isatap adapter #4 physical address. . . . . . . . . : 00-00-00-00-00-00-00-e0 dhcp enabled. . . . . . . . . . . : no autoconfiguration enabled . . . . : yes
just @ of curiosity, i've checked state of hyper-v instances , off. feeling there strange going on when hyper-v(s). i'm suspicious strange happens when system resumes hybernation when hyper-v instance running. i'll check....
i did check , still ok. hyper-v(s) setup wired netword adapter , such on wifi don't network. in case don't interfere.
update 2 - 20170411
as per request of @chris-lawrence comment, following ipconfig /all
host , inside container on network has problem. @ moment of time firewall on container host switched off, @gsa had suggested.
inside container
ps c:> ipconfig /all
windows ip configuration host name . . . . . . . . . . . . : d4e9a6d59f93 primary dns suffix . . . . . . . : node type . . . . . . . . . . . . : hybrid ip routing enabled. . . . . . . . : no wins proxy enabled. . . . . . . . : no ethernet adapter ethernet 2: connection-specific dns suffix . : description . . . . . . . . . . . : microsoft hyper-v network adapter #2 physical address. . . . . . . . . : 00-15-5d-53-00-71 dhcp enabled. . . . . . . . . . . : yes autoconfiguration enabled . . . . : yes link-local ipv6 address . . . . . : fe80::a08a:68b:1c3d:fe6e%5(preferred) ipv4 address. . . . . . . . . . . : 172.19.135.4(preferred) subnet mask . . . . . . . . . . . : 255.255.240.0 default gateway . . . . . . . . . : 172.19.128.1 dhcpv6 iaid . . . . . . . . . . . : 83891549 dhcpv6 client duid. . . . . . . . : 00-01-00-01-20-7e-30-be-00-15-5d-53-00-71 dns servers . . . . . . . . . . . : 172.19.128.1 netbios on tcpip. . . . . . . . : disabled
i notice there one dns entry 172.19.128.1
internal docker.
on container host
windows ip configuration host name . . . . . . . . . . . . : mecdevasar03 primary dns suffix . . . . . . . : global.sdl.corp node type . . . . . . . . . . . . : hybrid ip routing enabled. . . . . . . . : no wins proxy enabled. . . . . . . . : no dns suffix search list. . . . . . : global.sdl.corp sdl.corp maidenhead.sdl.corp sheffield.sdl.corp development.sheffield.sdl.corp irv.languageweaver.com languageweaver.com montreal.sdl.corp singapore.sdl.corp bray.sdl.corp seoul.sdl.corp idiominc.priv sdlproducts.com lan.lon.sdlproducts.com freetranslation.corp xyenterprise.com alterian.com ams.dev sdlntt.corp ethernet adapter vethernet (hns internal nic): connection-specific dns suffix . : description . . . . . . . . . . . : hyper-v virtual ethernet adapter physical address. . . . . . . . . : 00-15-5d-53-04-cb dhcp enabled. . . . . . . . . . . : yes autoconfiguration enabled . . . . : yes link-local ipv6 address . . . . . : fe80::f5c8:e8c7:1ad0:d845%26(preferred) ipv4 address. . . . . . . . . . . : 172.19.128.1(preferred) subnet mask . . . . . . . . . . . : 255.255.240.0 default gateway . . . . . . . . . : dhcpv6 iaid . . . . . . . . . . . : 436213085 dhcpv6 client duid. . . . . . . . : 00-01-00-01-1f-ad-0a-f4-18-db-f2-15-03-e7 dns servers . . . . . . . . . . . : fec0:0:0:ffff::1%1 fec0:0:0:ffff::2%1 fec0:0:0:ffff::3%1 netbios on tcpip. . . . . . . . : enabled ethernet adapter vethernet (external virtual switch): connection-specific dns suffix . : global.sdl.corp description . . . . . . . . . . . : hyper-v virtual ethernet adapter #2 physical address. . . . . . . . . : 18-db-f2-15-03-e7 dhcp enabled. . . . . . . . . . . : yes autoconfiguration enabled . . . . : yes link-local ipv6 address . . . . . : fe80::5814:8934:3247:a4bf%10(preferred) ipv4 address. . . . . . . . . . . : 10.98.5.139(preferred) subnet mask . . . . . . . . . . . : 255.255.0.0 lease obtained. . . . . . . . . . : tuesday, 11 april 2017 08:08:21 lease expires . . . . . . . . . . : wednesday, 19 april 2017 08:08:20 default gateway . . . . . . . . . : 10.98.1.1 dhcp server . . . . . . . . . . . : 10.98.3.7 dhcpv6 iaid . . . . . . . . . . . : 504945650 dhcpv6 client duid. . . . . . . . : 00-01-00-01-1f-ad-0a-f4-18-db-f2-15-03-e7 dns servers . . . . . . . . . . . : fec0:0:0:ffff::1%1 fec0:0:0:ffff::2%1 fec0:0:0:ffff::3%1 10.98.3.7 10.98.3.5 10.20.3.169 primary wins server . . . . . . . : 10.100.3.100 netbios on tcpip. . . . . . . . : enabled wireless lan adapter local area connection* 2: media state . . . . . . . . . . . : media disconnected connection-specific dns suffix . : description . . . . . . . . . . . : microsoft wi-fi direct virtual adapter physical address. . . . . . . . . : b8-08-cf-44-25-d9 dhcp enabled. . . . . . . . . . . : yes autoconfiguration enabled . . . . : yes ethernet adapter bluetooth network connection: media state . . . . . . . . . . . : media disconnected connection-specific dns suffix . : description . . . . . . . . . . . : bluetooth device (personal area network) physical address. . . . . . . . . : b8-08-cf-44-25-dc dhcp enabled. . . . . . . . . . . : yes autoconfiguration enabled . . . . : yes ethernet adapter vethernet (wireless external virtual switch): media state . . . . . . . . . . . : media disconnected connection-specific dns suffix . : global.sdl.corp description . . . . . . . . . . . : hyper-v virtual ethernet adapter #3 physical address. . . . . . . . . : b8-08-cf-44-25-d8 dhcp enabled. . . . . . . . . . . : yes autoconfiguration enabled . . . . : yes tunnel adapter isatap.global.sdl.corp: media state . . . . . . . . . . . : media disconnected connection-specific dns suffix . : global.sdl.corp description . . . . . . . . . . . : microsoft isatap adapter #2 physical address. . . . . . . . . : 00-00-00-00-00-00-00-e0 dhcp enabled. . . . . . . . . . . : no autoconfiguration enabled . . . . : yes tunnel adapter isatap.{5c890aae-6e73-44bb-bb1e-de8eb4794bf8}: media state . . . . . . . . . . . : media disconnected connection-specific dns suffix . : description . . . . . . . . . . . : microsoft isatap adapter #3 physical address. . . . . . . . . : 00-00-00-00-00-00-00-e0 dhcp enabled. . . . . . . . . . . : no autoconfiguration enabled . . . . : yes
update 3 - problem fixed
i upgraded windows 10 creators update , problem has stopped. now, consider issue fixed through windows update. whoever has similar issue, week behind on updates , don't believe that issue. seen if happens again.
Comments
Post a Comment