[GH-ISSUE #66] Update documentation: How to use on Windows #29

Closed
opened 2026-02-26 04:33:49 +03:00 by kerem · 3 comments
Owner

Originally created by @imjosh on GitHub (Apr 18, 2018).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/66

I wanted to use this on Windows 10 as an alternative to editing my HOSTS file. I was able to get this working using Docker CE for Windows w/ Linux containers, but I had to use this docker run command to get it to work (it took me about an hour to figure this out). The only other thing I had to do was change my network adapter setting by making 127.0.0.1 the DNS server.

docker run --name dns-proxy-server -p 5380:5380 -p 53:53/udp -v /var/run/docker.sock:/var/run/docker.sock defreitas/dns-proxy-server

Please consider adding this to the documentation. Thanks!

Originally created by @imjosh on GitHub (Apr 18, 2018). Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/66 I wanted to use this on Windows 10 as an alternative to editing my HOSTS file. I was able to get this working using Docker CE for Windows w/ Linux containers, but I had to use this `docker run` command to get it to work (it took me about an hour to figure this out). The only other thing I had to do was change my network adapter setting by making 127.0.0.1 the DNS server. `docker run --name dns-proxy-server -p 5380:5380 -p 53:53/udp -v /var/run/docker.sock:/var/run/docker.sock defreitas/dns-proxy-server ` Please consider adding this to the documentation. Thanks!
kerem closed this issue 2026-02-26 04:33:49 +03:00
Author
Owner

@mageddo commented on GitHub (Apr 20, 2018):

@imjosh Thank you for your contribution, some days ago I tried to test it on Windows 10 but I had not success.

Surely I will increment the documentation with your contribution, but first

docker run --name dns-proxy-server -p 5380:5380 -p 53:53/udp -v /var/run/docker.sock:/var/run/docker.sock defreitas/dns-proxy-server

Where did you ran that command? In which terminal? I am wondering about this section /var/run/docker.sock:/var/run/docker.sock it will work in Windows?

I am really newbie about docker for Windows

Regards

<!-- gh-comment-id:382946225 --> @mageddo commented on GitHub (Apr 20, 2018): @imjosh Thank you for your contribution, some days ago I tried to test it on Windows 10 but I had not success. Surely I will increment the documentation with your contribution, but first > docker run --name dns-proxy-server -p 5380:5380 -p 53:53/udp -v /var/run/docker.sock:/var/run/docker.sock defreitas/dns-proxy-server Where did you ran that command? In which terminal? I am wondering about this section `/var/run/docker.sock:/var/run/docker.sock ` it will work in Windows? I am really newbie about docker for Windows Regards
Author
Owner

@imjosh commented on GitHub (Apr 21, 2018):

Where did you ran that command? In which terminal?

From the Windows command prompt

I am wondering about this section /var/run/docker.sock:/var/run/docker.sock it will work in Windows?

Yes, it works (somehow) and it's required for it to work.

I tried to test it on Windows 10 but I had not success.

I'm not sure if it works for your intended purpose (primarily for dns within containers?). But it does work for sure as a Windows DNS proxy.

cheers

<!-- gh-comment-id:383320621 --> @imjosh commented on GitHub (Apr 21, 2018): > Where did you ran that command? In which terminal? From the Windows command prompt > I am wondering about this section `/var/run/docker.sock:/var/run/docker.sock` it will work in Windows? Yes, it works (somehow) and it's required for it to work. > I tried to test it on Windows 10 but I had not success. I'm not sure if it works for your intended purpose (primarily for dns within containers?). But it does work for sure as a Windows DNS proxy. cheers
Author
Owner

@mageddo commented on GitHub (May 31, 2018):

I finally updated the docs about how to use on Windows, thanks for your contribution, if you notice any issue please let me know

regards.

<!-- gh-comment-id:393617341 --> @mageddo commented on GitHub (May 31, 2018): I finally updated the docs about how to use on Windows, thanks for your contribution, if you notice any issue please let me know regards.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dns-proxy-server-mageddo#29
No description provided.