Skip to content

Instantly share code, notes, and snippets.

@foo0x29a
Created February 24, 2019 14:00
Show Gist options
  • Save foo0x29a/0b0a57ba07c4f99c979f9ddc47a8a385 to your computer and use it in GitHub Desktop.
Save foo0x29a/0b0a57ba07c4f99c979f9ddc47a8a385 to your computer and use it in GitHub Desktop.
BIND9
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