Initial commit

This commit is contained in:
paul 2020-08-15 01:15:51 +02:00
commit 71b8803f6b
3 changed files with 64 additions and 0 deletions

17
Dockerfile Normal file
View file

@ -0,0 +1,17 @@
FROM debian:buster
MAINTAINER Chris <bsod@zom.bi>
EXPOSE 53 53/udp
WORKDIR /root
# Install dependencies and sources
RUN \
apt-get update \
&& apt-get install --yes dnsutils bind9 \
# Trim down the image
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
VOLUME /etc/bind/
ENTRYPOINT ["/usr/sbin/named"]
CMD ["-f"]

34
README.md Normal file
View file

@ -0,0 +1,34 @@
## BIND DNS
bind is a dns server.
### Building bind
```
docker build -t zombi/bind .
```
### Running bind
```
docker run -d \
-p 53:53 \
-p 53:53/udp \
--name dns \
-v /data/bind/:/etc/bind/ \
zombi/bind
```
### Debugging
If the DNS server does not start up the reason is probably a syntax error in the configuration files.
Unfortunately these errors aren't logged on startup.
run `named-checkconf` for debugging which should tell you where the error is
```
docker run -it --rm \
--entrypoint /usr/sbin/named-checkconf \
-v /data/bind/:/etc/bind/ \
zombi/bind
```

13
docker-compose.yml Normal file
View file

@ -0,0 +1,13 @@
version: '2'
services:
bind:
build: .
ports:
- "53:53"
- "53:53/udp"
volumes:
- /data/bind/:/etc/bind/
webhook:
image: adnanh/webhook