Skip to content

Commit bc5c63c

Browse files
committed
Add Dockerfile for dnsmasq along with config
1 parent 77d64b4 commit bc5c63c

3 files changed

Lines changed: 25 additions & 0 deletions

File tree

images/dnsmasq/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM centos:7
2+
MAINTAINER CodeReady Container <devtools-cdk@redhat.com>
3+
4+
RUN yum -y install dnsmasq && \
5+
yum clean all && \
6+
systemctl enable dnsmasq
7+
8+
COPY dnsmasq.conf /etc/
9+
COPY resolv.dnsmasq.conf /etc/
10+
11+
EXPOSE 53/udp
12+
13+
CMD [ "/sbin/init" ]

images/dnsmasq/dnsmasq.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
user=root
2+
port=53
3+
bind-interfaces
4+
resolv-file=/etc/resolv.dnsmasq.conf
5+
addn-hosts=/etc/dnsmasq.hosts
6+
expand-hosts
7+
domain=localhost.localdomain
8+
log-queries

images/dnsmasq/resolv.dnsmasq.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
nameserver 8.8.8.8
2+
nameserver 8.8.4.4
3+
nameserver 208.67.222.222
4+
nameserver 208.67.220.220

0 commit comments

Comments
 (0)