Last active
November 26, 2019 07:08
-
-
Save samson-sham/e6cbf5faaa2243e3cfdcf7c6f0a9ca94 to your computer and use it in GitHub Desktop.
Mapping custom DNS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -it --rm -p 53:53/udp \ | |
--cap-add=NET_ADMIN andyshinn/dnsmasq:latest \ | |
--log-queries \ | |
--log-facility=- \ | |
--address=/yourcustomdomain.com/192.168.0.0 | |
docker ps -a | grep dnsmasq | awk '{print $1}' | xargs docker stop | |
xargs -I % docker stop % | |
# lsof -nP -i udp:53 // check status of UDP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment