Skip to content

Commit

Permalink
add dnsmasq
Browse files Browse the repository at this point in the history
  • Loading branch information
metavige committed May 8, 2021
1 parent f14a17c commit 68660e2
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions dnsmasq/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/jpillora/docker-dnsmasq
14 changes: 14 additions & 0 deletions dnsmasq/dnsmasq.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#dnsmasq config, for a complete example, see:
# http://oss.segetech.com/intra/srv/dnsmasq.conf
#log all dns queries
log-queries
#dont use hosts nameservers
no-resolv
#use cloudflare as default nameservers, prefer 1^4
server=1.1.1.1
server=8.8.8.8
strict-order

#serve all .docker.internal queries using a specific nameserver
address=/docker.internal/127.0.0.1
#explicitly define host-ip mappings
12 changes: 12 additions & 0 deletions dnsmasq/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '3'
services:
dns:
image: jpillora/dnsmasq
ports:
- 53:53/udp
- 5300:8080
volumes:
- ${PWD}/dnsmasq.conf:/etc/dnsmasq.conf
environment:
- "HTTP_USER=foo"
- "HTTP_PASS=bar"

0 comments on commit 68660e2

Please sign in to comment.