Test code to investigate the issue nodejs/node#2578 inside a Windows Docker container.
The binary is used to test the AI_ADDRCONFIG hint flag on Windows Server 2016 TP3 as well as running inside a Windows Docker container.
See the MSDN getaddrinfo article for more details.
getaddrinfo.exe registry.npmjs.org 80 AI_ADDRCONFIG
getaddrinfo.exe registry.npmjs.org 80 0
Spin up a Win2016 VM and set DOCKER_HOST environment variable to it.
Then run
./build.shThe final static release binary getaddrinfo.exe will be copied back to your host.