2017-04-07 8 views
0

Windows 기반 컨테이너의 DNS 해결 능력이 떨어지는 상황에 직면하고 있습니다.Windows 10에서 호스팅되는 Windows 컨테이너의 DNS가 손실됩니다.

Test-NetConnection google.com -Port 443

PS C 실패 컨테이너 내부에서 docker run -it microsoft/windowsservercore powershell

해결 DNS를 테스트 할 수있는 컨테이너를 시작하려면

일어나는 것입니다 : > Test-NetConn google.com -Port 443 경고 : google.com의 이름 확인에 실패했습니다. 상태 : 일반적으로 호스트 이름을 확인하는 중에 발생하는 일시적인 오류로, 로컬 서버가 인증 된 서버 ComputerName : google에서 응답을받지 못했음을 의미합니다. COM RemoteAddress : InterfaceAlias ​​: SourceAddress : PingSucceeded : \ 사용자 \ asarafian> 테스트 - NetConnection을 google.com - 포트 443:

그러나이

PS C와 같은 뭔가를해야합니다 거짓컴퓨터 이름 : google.com RemoteAddress : 216.58.204.14 RemotePort : 443 InterfaceAlias ​​: vEthernet (외부 가상 스위치) SourceAddress : 10.98.5.139 TcpTestSucceeded :

난 항상 워크 스테이션을 hybernate

(윈도우 10) 트루 그 위에 Hyper-V 인스턴스와 Docker를 운영합니다. 워크 스테이션은 Windows 10이고 문제가 발생하면 Windows 10 호스트의 IP 인 DNS로 사용한다는 것을 알 수 있습니다.

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 over Tcpip. . . . . . . . : Disabled 

172.19.128.1 컨테이너 내에서

내 창 10 호스트의 IP입니다.

동시에 Windows 10 호스트 컨테이너가 멈추었을 때 다른 모든 것들은 DNS를 정상적으로 해결합니다.

  • (10)
  • 의 Hyper-V 인스턴스가 해결되지 않는 컴퓨터를 다시 시작
  • 컨테이너의 Windows에서의 Hyper-V 인스턴스에서 호스팅 (10)

윈도우 10에서 윈도우에 대한 모든 과정을 문제. 이것이 두 번째로 발생합니다. 이전에는 문제를 해결하기 위해 전체 고정 장치 설치를 다시 설정해야했습니다. 이 문제를 피하고 문제가 무엇인지, 문제를 해결하는 방법을 알고 싶습니다.컨테이너 내부의 호스트와에서 ipconfig /all을 크리스 로렌스 주석 @, 다음의 요청에 따라 20,170,408

-

도커 버전은

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 

업데이트 1입니다. 흥미로운 점은 DNS 해상도가 컨테이너 내부에서 작동한다는 것입니다. 컨테이너 호스트 그냥 호기심에서

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 over 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 over 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 

에 컨테이너

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 over Tcpip. . . . . . . . : Disabled 

내부

, 나는 하이퍼 V 인스턴스의 상태를 확인 한 그들은 꺼져 있습니다. 내 감정은 하이퍼 -V가있을 때 이상한 일이 있다는 것입니다. 하이퍼 -V 인스턴스가 실행 중일 때 시스템이 하이버네이션에서 다시 시작될 때 이상한 일이 일어나는 것은 거의 의심 스럽습니다. 나는 수표를 줄 것이다. ...

나는 수표를 썼다. 그러나 하이퍼 -V (들) 유선 네트워크 어댑터에 대한 설치 및 와이파 이와 같은 다음 네트워크를 얻을하지 않습니다. 이 경우 그들은 간섭하지 않을 수 있습니다. 업데이트 2

- 크리스 로렌스 주석 @, 다음의 요청에 따라 20,170,411

문제이있는 네트워크에있는 컨테이너 내부의 호스트와에서 ipconfig /all이다. @GSA가 제안했듯이 현재 컨테이너 호스트의 방화벽은 꺼져 있습니다. 용기

PS C 내부

>에서 ipconfig/I는 내부 고정 표시기 만 하나 DNS 엔트리 172.19.128.1 있다는 것을 알 모든

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 over Tcpip. . . . . . . . : Disabled 

. 컨테이너 호스트

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 over 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 over 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 

업데이트 3에

- 문제

난 그냥 윈도우 (10) 제작자 업데이트로 업그레이드 갑자기 문제가 중지 고정. 지금은 Windows Update를 통해 해결 된 문제로 생각합니다. 그러나 유사한 문제가있는 분이라면, 나는 업데이트에 1 주일 남았고 그게 문제라고 생각하지 않습니다. 그것이 다시 일어날 지 지켜봐야합니다. 도커 샘플

+0

방화벽 차단 여부 확인 –

+0

어떤 방화벽이 있습니까? 컨테이너 내부 또는 호스트 내부 (Windows 10)?그것은 호스트에서 그것을 차단하는 경우 다음 다른 모든 작동합니까? 또한 갑작스러운 변화를 어떻게 설명 할 수 있습니까? 도커가 시스템에서 뭔가를하고 있습니다. Windows 업데이트가 무시 될 수 있습니까? –

+0

호스트 방화벽. 많은 것들이 켜져 있다면 믿을 수 없을 정도로 작동합니다. –

답변

0

하나는 당신이 실행 말한다 : 이것은 당신의 창 용기 내부 DNS와 함께 몇 가지 문제를 해결하도록되어

RUN Set-ItemProperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord 

. 그것이 당신을 도울 것이라고 확신하지는 않지만, 한 발의 가치가 있습니다.

+0

감사합니다. 나는 컨테이너로 현재 일하고 있지 않으며 문제는 이미 멈추기 전에 이미 멈춰 있었기 때문에 검증 할 수 없었다. 하지만 나중에 참조 할 때와 같은 문제가 발생할 수있는 다른 사람들을 위해 염두에 두는 것이 좋습니다. –