mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:31 +02:00
add dnsmasq
This commit is contained in:
parent
664b974c9e
commit
6dd7a7d80a
18
dnsmasq/Dockerfile
Normal file
18
dnsmasq/Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
#
|
||||
# Dockerfile for dnsmasq
|
||||
#
|
||||
|
||||
FROM alpine
|
||||
MAINTAINER kev <norelply@datageek.info>
|
||||
|
||||
RUN set -xe \
|
||||
&& apk add -U dnsmasq \
|
||||
&& echo "conf-dir=/etc/dnsmasq.d/,*.conf" >> /etc/dnsmasq.conf \
|
||||
&& mkdir -p /etc/dnsmasq.d \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
VOLUME /etc/dnsmasq.d
|
||||
|
||||
EXPOSE 53/tcp 53/udp 67/udp
|
||||
|
||||
ENTRYPOINT ["/usr/sbin/dnsmasq", "--user=dnsmasq", "--group=dnsmasq"]
|
2
dnsmasq/README.md
Normal file
2
dnsmasq/README.md
Normal file
@ -0,0 +1,2 @@
|
||||
dnsmasq
|
||||
=======
|
4
dnsmasq/dnsmasq.d/README
Normal file
4
dnsmasq/dnsmasq.d/README
Normal file
@ -0,0 +1,4 @@
|
||||
# All files in this directory which end in .conf
|
||||
# will be read by dnsmasq as configuration files
|
||||
#
|
||||
# This can be changed by editing /etc/dnsmasq.conf
|
1
dnsmasq/dnsmasq.d/ads.conf
Normal file
1
dnsmasq/dnsmasq.d/ads.conf
Normal file
@ -0,0 +1 @@
|
||||
# server=/duobao999.com/
|
1
dnsmasq/dnsmasq.d/hosts.conf
Normal file
1
dnsmasq/dnsmasq.d/hosts.conf
Normal file
@ -0,0 +1 @@
|
||||
# host-record=google,8.8.8.8
|
2
dnsmasq/dnsmasq.d/nxdomains.conf
Normal file
2
dnsmasq/dnsmasq.d/nxdomains.conf
Normal file
@ -0,0 +1,2 @@
|
||||
# bogus-nxdomain=202.102.110.203
|
||||
# bogus-nxdomain=202.102.110.204
|
4
dnsmasq/dnsmasq.d/settings.conf
Normal file
4
dnsmasq/dnsmasq.d/settings.conf
Normal file
@ -0,0 +1,4 @@
|
||||
# no-hosts
|
||||
# no-resolv
|
||||
# cache-size=10000
|
||||
# server=127.0.0.1#2053
|
0
dnsmasq/docker-compose.yml
Normal file
0
dnsmasq/docker-compose.yml
Normal file
Loading…
Reference in New Issue
Block a user