Skip to content

Commit

Permalink
Feature/release 1.21.0 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
obi12341 authored Sep 4, 2024
1 parent 8945cb1 commit 0e53280
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 59 deletions.
62 changes: 31 additions & 31 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
FROM ubuntu:jammy
MAINTAINER [email protected]

ENV VERSION 1.19.1
ENV VERSION 1.21.0

WORKDIR /usr/local/src/
ADD assets/sha256checksum sha256checksum

RUN apt update && apt install -y \
build-essential \
tar \
wget \
libssl-dev \
libevent-dev \
libevent-2.1-7 \
libexpat1-dev \
libexpat1 \
dnsutils \
&& wget --no-hsts http://www.unbound.net/downloads/unbound-${VERSION}.tar.gz -P /usr/local/src/ \
&& sha256sum -c sha256checksum \
&& tar -xvf unbound-${VERSION}.tar.gz \
&& rm unbound-${VERSION}.tar.gz \
&& cd unbound-${VERSION} \
&& ./configure --prefix=/usr/local --with-libevent \
&& make \
&& make install \
&& cd ../ \
&& rm -R unbound-${VERSION} \
&& apt purge -y \
build-essential \
gcc \
cpp \
libssl-dev \
libevent-dev \
libexpat1-dev \
&& apt autoremove --purge -y \
&& apt clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
build-essential \
tar \
wget \
libssl-dev \
libevent-dev \
libevent-2.1-7 \
libexpat1-dev \
libexpat1 \
dnsutils \
&& wget --no-hsts http://www.unbound.net/downloads/unbound-${VERSION}.tar.gz -P /usr/local/src/ \
&& sha256sum -c sha256checksum \
&& tar -xvf unbound-${VERSION}.tar.gz \
&& rm unbound-${VERSION}.tar.gz \
&& cd unbound-${VERSION} \
&& ./configure --prefix=/usr/local --with-libevent \
&& make \
&& make install \
&& cd ../ \
&& rm -R unbound-${VERSION} \
&& apt purge -y \
build-essential \
gcc \
cpp \
libssl-dev \
libevent-dev \
libexpat1-dev \
&& apt autoremove --purge -y \
&& apt clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN useradd --system unbound --home /home/unbound --create-home
ENV PATH $PATH:/usr/local/lib
Expand All @@ -47,7 +47,7 @@ RUN chown -R unbound:unbound /usr/local/etc/unbound/
USER unbound
RUN unbound-anchor -a /usr/local/etc/unbound/root.key ; true
RUN unbound-control-setup \
&& wget ftp://FTP.INTERNIC.NET/domain/named.cache -O /usr/local/etc/unbound/root.hints
&& wget ftp://FTP.INTERNIC.NET/domain/named.cache -O /usr/local/etc/unbound/root.hints

USER root
ADD start.sh /start.sh
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
Unbound (with DNSSEC validation)
===========
# Unbound (with DNSSEC validation)

# Running

Just use this command to start the container. Unbound will listen on port 53/udp.

```docker run --name unbound -d -p 53:53/udp -p 53:53 mobilistics/unbound:1.19.1```
`docker run --name unbound -d -p 53:53/udp -p 53:53 mobilistics/unbound:1.21.0`

(optional)
If you want to override the nameserver in the unbound container, you can use:

```docker run --name unbound -d -p 53:53/udp -p 53:53 --dns="127.0.0.1" mobilistics/unbound:1.19.1```
`docker run --name unbound -d -p 53:53/udp -p 53:53 --dns="127.0.0.1" mobilistics/unbound:1.21.0`

# Configuration

These options can be set via the environment variable -e flag:

- **DO_IPV6**: Enable or disable ipv6. (Default: "yes", Possible Values: "yes, no")
Expand Down
2 changes: 1 addition & 1 deletion assets/sha256checksum
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bc1d576f3dd846a0739adc41ffaa702404c6767d2b6082deb9f2f97cbb24a3a9 unbound-1.19.1.tar.gz
e7dca7d6b0f81bdfa6fa64ebf1053b5a999a5ae9278a87ef182425067ea14521 unbound-1.21.0.tar.gz
46 changes: 23 additions & 23 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
unbound:
image: mobilistics/unbound:1.19.1
image: mobilistics/unbound:1.21.0
ports:
- "53:53/udp"
- "53:53"
- "53:53/udp"
- "53:53"
environment:
- DO_IPV6=yes
- DO_IPV4=yes
- DO_UDP=yes
- DO_TCP=yes
- VERBOSITY=0
- NUM_THREADS=1
- SO_RCVBUFF=0
- SO_SNDBUF=0
- SO_REUSEPORT=no
- EDNS_BUFFER_SIZE=4096
- MSG_CACHE_SIZE=4m
- RRSET_CACHE_SIZE=4m
- CACHE_MIN_TTL=0
- CACHE_MAX_TTL=86400
- CACHE_MAX_NEGATIVE_TTL=3600
- HIDE_IDENTITY=no
- HIDE_VERSION=no
- STATISTICS_INTERVAL=0
- STATISTICS_CUMULATIVE=no
- EXTENDED_STATISTICS=no
- DO_IPV6=yes
- DO_IPV4=yes
- DO_UDP=yes
- DO_TCP=yes
- VERBOSITY=0
- NUM_THREADS=1
- SO_RCVBUFF=0
- SO_SNDBUF=0
- SO_REUSEPORT=no
- EDNS_BUFFER_SIZE=4096
- MSG_CACHE_SIZE=4m
- RRSET_CACHE_SIZE=4m
- CACHE_MIN_TTL=0
- CACHE_MAX_TTL=86400
- CACHE_MAX_NEGATIVE_TTL=3600
- HIDE_IDENTITY=no
- HIDE_VERSION=no
- STATISTICS_INTERVAL=0
- STATISTICS_CUMULATIVE=no
- EXTENDED_STATISTICS=no
restart: always

0 comments on commit 0e53280

Please sign in to comment.