Changeset View
Changeset View
Standalone View
Standalone View
docker/pdns/Dockerfile
FROM fedora:35 | FROM fedora:35 | ||||
ENV container docker | ENV container docker | ||||
ENV SYSTEMD_PAGER='' | ENV SYSTEMD_PAGER='' | ||||
RUN dnf -y install \ | RUN dnf -y install \ | ||||
--setopt 'tsflags=nodocs' \ | --setopt 'tsflags=nodocs' \ | ||||
bind-utils \ | bind-utils \ | ||||
cronie \ | |||||
iproute \ | iproute \ | ||||
iptables \ | iptables \ | ||||
iputils \ | |||||
net-tools \ | net-tools \ | ||||
pdns \ | pdns \ | ||||
pdns-backend-mysql \ | pdns-backend-mysql \ | ||||
pdns-recursor \ | pdns-recursor \ | ||||
pdns-tools \ | pdns-tools \ | ||||
procps-ng \ | procps-ng \ | ||||
vim-enhanced \ | vim-enhanced \ | ||||
wget \ | wget \ | ||||
which && \ | which && \ | ||||
dnf clean all | dnf clean all | ||||
COPY pdns.conf /etc/pdns/pdns.conf | COPY pdns.conf /etc/pdns/pdns.conf | ||||
COPY recursor.conf /etc/pdns-recursor/recursor.conf | COPY recursor.conf /etc/pdns-recursor/recursor.conf | ||||
RUN systemctl enable pdns && systemctl enable pdns-recursor | RUN systemctl disable systemd-resolved && systemctl enable pdns && systemctl enable pdns-recursor | ||||
# This is how we could run pdns without systemd | # This is how we could run pdns without systemd | ||||
# ENV PDNS_guardian=yes \ | # ENV PDNS_guardian=yes \ | ||||
# PDNS_setuid=pdns \ | # PDNS_setuid=pdns \ | ||||
# PDNS_setgid=pdns \ | # PDNS_setgid=pdns \ | ||||
# PDNS_launch=gmysql | # PDNS_launch=gmysql | ||||
# CMD ["/usr/sbin/pdns_server", "--guardian=no", "--daemon=no", "--disable-syslog", "--log-timestamp=no", "--write-pid=no"] | # CMD ["/usr/sbin/pdns_server", "--guardian=no", "--daemon=no", "--disable-syslog", "--log-timestamp=no", "--write-pid=no"] | ||||
CMD ["/lib/systemd/systemd", "--system"] | CMD ["/lib/systemd/systemd", "--system"] | ||||
EXPOSE 9953 9953/udp | EXPOSE 53 53/udp |