Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helm chart #208

Merged
merged 4 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .docker/unbound/rootfs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
FROM alpinelinux/unbound:latest

RUN apk add --update bind-tools drill
ADD https://www.internic.net/domain/named.cache /etc/unbound/root.hints
ADD . /
RUN apk add --update bind-tools drill \
&& chown -R unbound:unbound /etc/unbound

RUN unbound-checkconf
USER unbound
ADD --chown=unbound:unbound . /
ADD --chown=unbound:unbound --chmod=0644 https://www.internic.net/domain/named.cache /etc/unbound/root.hints

RUN ls -lah /etc/unbound

RUN /usr/sbin/unbound-checkconf

USER 101:101
EXPOSE 5353/udp

ENTRYPOINT ["unbound", "-dp"]
4 changes: 4 additions & 0 deletions .docker/unbound/rootfs/etc/unbound/forward-zone.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
forward-zone:
name: "."
forward-addr: 9.9.9.9
forward-addr: 149.112.112.112
39 changes: 39 additions & 0 deletions .docker/unbound/rootfs/etc/unbound/server.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
server:
username: ""
chroot: ""
port: 5353
verbosity: 1
interface: 0.0.0.0@5353
do-ip4: yes
do-ip6: no
do-udp: yes
do-tcp: no
prefer-ip4: yes
prefer-ip6: no
do-daemonize: no
access-control: 0.0.0.0/0 allow
logfile: ""
use-syslog: no
log-queries: yes
hide-identity: yes
hide-version: yes
harden-glue: yes
harden-dnssec-stripped: yes
use-caps-for-id: yes
cache-min-ttl: 3600
cache-max-ttl: 86400
prefetch: yes
num-threads: 4
msg-cache-slabs: 8
rrset-cache-slabs: 8
infra-cache-slabs: 8
key-cache-slabs: 8
rrset-cache-size: 256m
msg-cache-size: 128m
so-rcvbuf: 1m
private-address: 192.168.1.0/16
unwanted-reply-threshold: 10000
do-not-query-localhost: no
val-clean-additional: yes
val-permissive-mode: yes
module-config: "iterator"
42 changes: 2 additions & 40 deletions .docker/unbound/rootfs/etc/unbound/unbound.conf
Original file line number Diff line number Diff line change
@@ -1,41 +1,3 @@
server:
username: unbound
port: 5353
verbosity: 1
interface: 0.0.0.0@5353
do-ip4: yes
do-ip6: no
do-udp: yes
do-tcp: no
prefer-ip4: yes
prefer-ip6: no
do-daemonize: no
access-control: 0.0.0.0/0 allow
logfile: ""
use-syslog: no
log-queries: yes
hide-identity: yes
hide-version: yes
harden-glue: yes
harden-dnssec-stripped: yes
use-caps-for-id: yes
cache-min-ttl: 3600
cache-max-ttl: 86400
prefetch: yes
num-threads: 4
msg-cache-slabs: 8
rrset-cache-slabs: 8
infra-cache-slabs: 8
key-cache-slabs: 8
rrset-cache-size: 256m
msg-cache-size: 128m
so-rcvbuf: 1m
private-address: 192.168.1.0/16
unwanted-reply-threshold: 10000
do-not-query-localhost: no
val-clean-additional: yes
include: "/etc/unbound/server.conf"
root-hints: "/etc/unbound/root.hints"
forward-zone:
name: "."
forward-addr: 9.9.9.9
forward-addr: 149.112.112.112
include: "/etc/unbound/forward-zone.conf"
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@ snapshot:
.PHONY: test
test:
act "pull_request" -j test

.PHONY: build-unbound
build-unbound:
docker build \
-t ghcr.io/luzilla/unbound:dev \
.docker/unbound/rootfs
Loading