diff --git a/rootfs/app/entrypoint.sh b/rootfs/app/entrypoint.sh index 98d7377..535d75e 100755 --- a/rootfs/app/entrypoint.sh +++ b/rootfs/app/entrypoint.sh @@ -32,9 +32,9 @@ EOF fi # set port -cat >> /etc/unbound/unbound.conf.d/port.conf << EOF +cat > /etc/unbound/unbound.conf.d/port.conf << EOF server: - interface: 0.0.0.0:${PORT} + port: ${PORT} EOF if [ "${DNSPROXY}" = true ] ; then diff --git a/rootfs/etc/unbound/unbound.conf b/rootfs/etc/unbound/unbound.conf index b255c21..76bc348 100644 --- a/rootfs/etc/unbound/unbound.conf +++ b/rootfs/etc/unbound/unbound.conf @@ -1,6 +1,5 @@ server: interface: 0.0.0.0 - port: 53 do-ip4: yes do-ip6: no do-udp: yes diff --git a/rootfs/etc/unbound/unbound.conf.d/port.conf b/rootfs/etc/unbound/unbound.conf.d/port.conf new file mode 100644 index 0000000..264bc5e --- /dev/null +++ b/rootfs/etc/unbound/unbound.conf.d/port.conf @@ -0,0 +1,2 @@ +server: + port: 1053