Skip to content
Snippets Groups Projects
Commit c09e9be1 authored by nimrod's avatar nimrod
Browse files

Merge branch 'knot'

parents c43e5b1b 04129e0a
Branches
No related tags found
No related merge requests found
.git/
README*
*.swp
FROM debian:stretch-slim FROM cznic/knot-resolver
ENV DEBIAN_FRONTEND noninteractive RUN echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories && \
RUN apt-get update && \ apk add --update \
apt-get install -y unbound unbound-host dnsutils dma bsd-mailx && \ dma@testing \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* && iproute2 \
unbound-checkconf knot-utils \
COPY entrypoint.sh /entrypoint.sh mailx \
ENTRYPOINT ["/entrypoint.sh"] mtr \
CMD ["/bin/bash", "--login"] && \
rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
COPY entrypoint /entrypoint
ENTRYPOINT [ "/entrypoint" ]
CMD [ "bash", "--login" ]
...@@ -5,5 +5,4 @@ https://www.shore.co.il/blog/resolver/. ...@@ -5,5 +5,4 @@ https://www.shore.co.il/blog/resolver/.
## Usage ## Usage
docker pull adarnimrod/resolver
docker run -it adarnimrod/resolver docker run -it adarnimrod/resolver
#!/bin/sh #!/bin/sh
set -eu set -eu
service unbound start echo "net = { '127.0.0.1', '::1'}" | nohup kresd -f1 &
echo 'nameserver 127.0.0.1' > /etc/resolv.conf echo 'nameserver 127.0.0.1' > /etc/resolv.conf
eval "exec $@" eval "exec $@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment