Skip to content

Internal DNS does not work under Windows Server 2022 since version 25.0.0 #47370

@rob-linton

Description

@rob-linton

Description

Internal DNS does not work on windows server 2022. Pinging one container from another container in the default nat network fails in all versions after 25.0.0 but works in 24.0.9.

Reproduce

Step 1.

Run the following test bat file under versions 25.0.0 or later:

docker kill container1
docker kill container2
docker rm -v container1
docker rm -v container2

docker run -dit --name container1 --network nat mcr.microsoft.com/dotnet/framework/runtime:4.8 cmd

docker run -it --name container2 --network nat mcr.microsoft.com/dotnet/framework/runtime:4.8 cmd

You will be at the cmd prompt of container2.

Step 2.
At the command prompt of container2 run the following command:

Microsoft Windows [Version 10.0.20348.2227]
(c) Microsoft Corporation. All rights reserved.

C:\>ping container1
Ping request could not find host container1. Please check the name and try again.

C:\>exit

c:\tmp>docker -v
Docker version 25.0.0, build e758fe5

Expected behavior

Expected behavior at the command prompt of container2 in any version before version 25.0.0:

Microsoft Windows [Version 10.0.20348.2227]
(c) Microsoft Corporation. All rights reserved.

C:\>ping container1

Pinging container1 [172.28.57.12] with 32 bytes of data:
Reply from 172.28.57.12: bytes=32 time<1ms TTL=128
Reply from 172.28.57.12: bytes=32 time<1ms TTL=128
Reply from 172.28.57.12: bytes=32 time<1ms TTL=128
Reply from 172.28.57.12: bytes=32 time<1ms TTL=128

Ping statistics for 172.28.57.12:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\>exit

c:\tmp>docker -v
Docker version 24.0.9, build 2936816

c:\tmp\2.13.0>

docker version

Client:
 Version:           25.0.0
 API version:       1.44
 Go version:        go1.21.6
 Git commit:        e758fe5
 Built:             Thu Jan 18 17:10:49 2024
 OS/Arch:           windows/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          25.0.0
  API version:      1.44 (minimum version 1.24)
  Go version:       go1.21.6
  Git commit:       615dfdf
  Built:            Thu Jan 18 17:09:34 2024
  OS/Arch:          windows/amd64
  Experimental:     false

docker info

Client:
 Version:    25.0.0
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc.)
    Version:  v0.9.1-beta3
    Path:     C:\Program Files\Docker\cli-plugins\docker-app.exe
  cluster: Manage Mirantis Container Cloud clusters (Mirantis Inc.)
    Version:  v1.9.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-cluster.exe
  registry: Manage Docker registries (Docker Inc.)
    Version:  0.1.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-registry.exe

Server:
 Containers: 3
  Running: 1
  Paused: 0
  Stopped: 2
 Images: 132
 Server Version: 25.0.0
 Storage Driver: windowsfilter
  Windows:
 Logging Driver: json-file
 Plugins:
  Volume: local
  Network: ics internal l2bridge l2tunnel nat null overlay private transparent
  Log: awslogs etwlogs fluentd gcplogs gelf json-file local splunk syslog
 Swarm: inactive
 Default Isolation: process
 Kernel Version: 10.0 20348 (20348.1.amd64fre.fe_release.210507-1500)
 Operating System: Microsoft Windows Server Version 21H2 (OS Build 20348.2227)
 OSType: windows
 Architecture: x86_64
 CPUs: 2
 Total Memory: 9.999GiB
 Name: WIN-78M43QMJ96T
 ID: e38ac0ca-1d61-4aa0-b4d5-c151c3093f0d
 Docker Root Dir: C:\ProgramData\docker
 Debug Mode: false
 Username: senetas
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
 Product License: Community Engine

Additional Info

This has not been tested on Windows Server 2019

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions