Skip to content

Commit

Permalink
Merge pull request #27 from obi12341/feature/release-1.18.0
Browse files Browse the repository at this point in the history
prepare 1.18.0 release
  • Loading branch information
obi12341 authored Aug 31, 2023
2 parents 59de6c5 + 1541834 commit 11dd301
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu:jammy
MAINTAINER [email protected]

ENV VERSION 1.17.1
ENV VERSION 1.18.0

WORKDIR /usr/local/src/
ADD assets/sha256checksum sha256checksum
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ Unbound (with DNSSEC validation)

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.17.1```
```docker run --name unbound -d -p 53:53/udp -p 53:53 mobilistics/unbound:1.18.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.17.1```
```docker run --name unbound -d -p 53:53/udp -p 53:53 --dns="127.0.0.1" mobilistics/unbound:1.18.0```

# Configuration
These options can be set via the environment variable -e flag:
Expand All @@ -37,3 +37,4 @@ These options can be set via the environment variable -e flag:
- **STATISTICS_CUMULATIVE**: enable cumulative statistics, without clearing them after printing. (Default: "no", Possible Values: "yes, no")
- **EXTENDED_STATISTICS**: enable extended statistics (query types, answer codes, status) printed from unbound-control. (Default: "no", Possible Values: "yes, no")
- **INTERFACE**: Sets the interface to listen on useful when using --net=host (Default 0.0.0.0, Possible Values: "<ipaddress>", "<ipaddress>@<port>")
- **REMOTE_CONTROL_ENABLE**: Enable the remote control feature (Default "yes", Possible Values: "yes, no")
2 changes: 1 addition & 1 deletion assets/sha256checksum
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ee4085cecce12584e600f3d814a28fa822dfaacec1f94c84bfd67f8a5571a5f4 unbound-1.17.1.tar.gz
3da95490a85cff6420f26fae0b84a49f5112df1bf1b7fc34f8724f02082cb712 unbound-1.18.0.tar.gz
8 changes: 4 additions & 4 deletions assets/unbound.conf
Original file line number Diff line number Diff line change
Expand Up @@ -593,19 +593,19 @@ python:
remote-control:
# Enable remote control with unbound-control(8) here.
# set up the keys and certificates with unbound-control-setup.
control-enable: yes
control-enable: {{REMOTE_CONTROL_ENABLE}}

# Set to no and use an absolute path as control-interface to use
# a unix local named pipe for unbound-control.
# control-use-cert: yes

# what interfaces are listened to for remote control.
# give 0.0.0.0 and ::0 to listen to all interfaces.
# control-interface: 127.0.0.1
# control-interface: ::1
control-interface: 0.0.0.0
control-interface: ::0

# port number for remote control operations.
# control-port: 8953
control-port: 8953

# unbound server key file.
server-key-file: "/usr/local/etc/unbound/unbound_server.key"
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
unbound:
image: mobilistics/unbound:1.17.1
image: mobilistics/unbound:1.18.0
ports:
- "53:53/udp"
- "53:53"
Expand Down
2 changes: 2 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ STATISTICS_INTERVAL=${STATISTICS_INTERVAL:-0}
STATISTICS_CUMULATIVE=${STATISTICS_CUMULATIVE:-no}
EXTENDED_STATISTICS=${EXTENDED_STATISTICS:-no}
INTERFACE=${INTERFACE:-0.0.0.0}
REMOTE_CONTROL_ENABLE=${REMOTE_CONTROL_ENABLE:-yes}


sed 's/{{DO_IPV6}}/'"${DO_IPV6}"'/' -i /usr/local/etc/unbound/unbound.conf
Expand All @@ -46,5 +47,6 @@ sed 's/{{STATISTICS_INTERVAL}}/'"${STATISTICS_INTERVAL}"'/' -i /usr/local/etc/un
sed 's/{{STATISTICS_CUMULATIVE}}/'"${STATISTICS_CUMULATIVE}"'/' -i /usr/local/etc/unbound/unbound.conf
sed 's/{{EXTENDED_STATISTICS}}/'"${EXTENDED_STATISTICS}"'/' -i /usr/local/etc/unbound/unbound.conf
sed 's/{{INTERFACE}}/'"${INTERFACE}"'/' -i /usr/local/etc/unbound/unbound.conf
sed 's/{{REMOTE_CONTROL_ENABLE}}/'"${REMOTE_CONTROL_ENABLE}"'/' -i /usr/local/etc/unbound/unbound.conf

exec /usr/local/sbin/unbound -c /usr/local/etc/unbound/unbound.conf -d -v

0 comments on commit 11dd301

Please sign in to comment.