Skip to content

Windows containers on Docker cannot lookup a host on 10.0.20348.3932, earlier unaffected #606

@doctorpangloss

Description

@doctorpangloss

Please fill out all the sections below for bug issues, otherwise it'll be closed as it won't be actionable for us to address.

Describe the bug
DNS is broken quite badly in the latest windows update as the host (10.0.20348.3932) even when using powershell, so reopens #216

$ docker run -it mcr.microsoft.com/windows/server:10.0.20348.3566
Microsoft Windows [Version 10.0.20348.3566]
(c) Microsoft Corporation. All rights reserved.

C:\>nslookup github.com
DNS request timed out.
    timeout was 2 seconds.
Server:  UnKnown
Address:  172.20.240.1

DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
^C
C:\>powershell
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS C:\> Resolve-DnsName github.com
Resolve-DnsName : github.com : DNS server failure
At line:1 char:1
+ Resolve-DnsName github.com
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (github.com:String) [Resolve-DnsName], Win32Exception
    + FullyQualifiedErrorId : RCODE_SERVER_FAILURE,Microsoft.DnsClient.Commands.ResolveDnsName

PS C:\>
$ docker run -it mcr.microsoft.com/windows/server:10.0.20348.3932
Microsoft Windows [Version 10.0.20348.3932]
(c) Microsoft Corporation. All rights reserved.

C:\>powershell
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS C:\> Resolve-DnsName github.com
Resolve-DnsName : github.com : This operation returned because the timeout period expired
At line:1 char:1
+ Resolve-DnsName github.com
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationTimeout: (github.com:String) [Resolve-DnsName], Win32Exception
    + FullyQualifiedErrorId : ERROR_TIMEOUT,Microsoft.DnsClient.Commands.ResolveDnsName

PS C:\>

To Reproduce
(see above)

Expected behavior
You should have an automated test for dns lookups on Docker Desktop

Configuration:

  • Edition: Windows Server 2022 10.0.20348.3932
  • Container engine: docker
  • Container Engine version: 28.3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions