Created
February 24, 2019 14:00
-
-
Save foo0x29a/0b0a57ba07c4f99c979f9ddc47a8a385 to your computer and use it in GitHub Desktop.
BIND9
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
FROM ubuntu:bionic | |
RUN apt-get update \ | |
&& apt-get install -y \ | |
bind9 \ | |
bind9utils \ | |
bind9-doc | |
# Enable IPv4 | |
RUN sed -i 's/OPTIONS=.*/OPTIONS="-4 -u bind"/' /etc/default/bind9 | |
# Copy configuration files | |
COPY named.conf.options /etc/bind/ | |
COPY named.conf.local /etc/bind/ | |
COPY db.nagoya-foundation.com /etc/bind/zones/ | |
# Run eternal loop | |
CMD ["/bin/bash", "-c", "while :; do sleep 10; done"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment