Sign inSign up

saarphil/unbound

By saarphil

•Updated about 20 hours ago

unbound as recursive resolver with a minimal configuration

Image
Networking
0

6.0K

saarphil/unbound repository overview

Unbound Resolver based on Ubuntu⁠ and nlnetlabs Unbound⁠

⁠Tags

⁠Current
  • latest (daily built)
⁠Older versions

Currently there's no specific versioning.

⁠Setup

Here's a rather simple but full example:

mkdir -p assets/unbound/unbound.conf.d/

cat <<EOL > assets/unbound/unbound.conf
include-toplevel: "/etc/unbound/unbound.conf.d/*.conf"
EOL

cat <<EOL > assets/unbound/unbound.conf.d/server.conf
server:
  auto-trust-anchor-file: "/var/lib/unbound/root.key"
  extended-statistics: yes
  use-syslog: no
  interface: 0.0.0.0@53
  interface: ::0@53
  access-control: 0.0.0.0/0 allow
EOL

cat <<EOL > assets/unbound/unbound.conf.d/remote-control.conf
remote-control:
  control-enable: yes
  control-interface: /var/run/socket/unbound.ctl
  control-use-cert: no
  control-port: 8953
  server-key-file: "/etc/unbound/unbound_server.key"
  server-cert-file: "/etc/unbound/unbound_server.pem"
  control-key-file: "/etc/unbound/unbound_control.key"
  control-cert-file: "/etc/unbound/unbound_control.pem"
EOL

docker-compose.yml

services:

  unbound:
    container_name: unbound
    image: saarphil/unbound:latest
    restart: unless-stopped
    volumes:
      - "${PWD}/assets/unbound/:/etc/unbound/"
    ports:
      - 53:53
      - 53:53/udp

  unbound_exporter:
    container_name: unbound_exporter
    image: saarphil/unbound_exporter:latest
    command: '-unbound.host=unix:///var/run/socket/unbound.ctl'
    restart: unless-stopped
    volumes:
      - "${PWD}/assets/unbound/:/etc/unbound/"
    ports:
      - "9167:9167"
    depends_on:
      unbound:
	condition: service_started

volumes:
  socket:

⁠Contact

  • support [at] codereaders.eu

Tag summary

Content type

Image

Digest

sha256:56c83042c…

Size

80.1 MB

Last updated

about 20 hours ago

docker pull saarphil/unbound