Improve Bind9 configuration
This commit is contained in:
parent
e0b6f6bac8
commit
0e54866e46
@ -10,6 +10,16 @@ RUN apt-get update && \
|
||||
traceroute \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN sed 's/include "\/etc\/bind\/named.conf.default-zones";//g' /etc/bind/named.conf
|
||||
RUN echo "include \"/etc/dns/master.conf\";" > /etc/bind/named.conf.local
|
||||
|
||||
COPY start.sh /start.sh
|
||||
COPY restart-bind /usr/bin
|
||||
|
||||
RUN mkdir /etc/dns
|
||||
RUN touch /etc/dns/master.conf
|
||||
|
||||
VOLUME /etc/dns
|
||||
|
||||
EXPOSE 53
|
||||
CMD ["/bin/sh", "/start.sh"]
|
5
dns/README.md
Normal file
5
dns/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# DNS server container
|
||||
|
||||
## Useful commands
|
||||
* `named-checkconf`: Check Bind9 configuration
|
||||
* `restart-bind`: Restart Bind9
|
3
dns/restart-bind
Executable file
3
dns/restart-bind
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
pkill named
|
||||
/usr/sbin/named
|
Loading…
Reference in New Issue
Block a user