Skip to content

J-Siu/docker_unbound

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker - Unbound DNS over TLS (DoT) Forwarder Paypal donate

Base: alpine:latest with unbound from apk

Small image < 14M.

Default config use Google and Cloudflare as DoT forwarder

Table Of Content

Build

git clone https://github.com/J-Siu/docker_unbound.git
cd docker_unbound
docker build --network=host -t jsiu/unbound .

Usage

Standard Usage

docker run -d \
  -p 53:53/udp \
  -p 53:53/tcp \
  jsiu/unbound:latest

Custom Config

Unbound custom config file:

docker run -d \
  -v <absolute path config file>:/etc/unbound/unbound.conf
  -p 53:53/udp \
  -p 53:53/tcp \
  jsiu/unbound:latest

Unbound custom config directory:

docker run -d \
  -v <absolute path config dir>:/etc/unbound/ \
  -p 53:53/udp \
  -p 53:53/tcp \
  jsiu/unbound:latest

/etc/unbound/unbound.conf

server:
  username: unbound
  interface: ::0
  interface: 0.0.0.0
  #interface-automatic: yes
  verbosity: 0
  prefer-ip6: yes
  do-ip4: yes
  do-ip6: yes
  do-udp: yes
  do-tcp: yes
  tls-cert-bundle: /etc/ssl/cert.pem
  # Logs
  logfile: ""
  use-syslog: no
  log-replies: no
  log-tag-queryreply: no
  log-servfail: no
  hide-identity: yes
  hide-version: yes
  hide-trustanchor: yes
  # Allow recursive query from anywhere
  access-control: 0.0.0.0/0 allow
  access-control: ::0/0 allow
  # Force cache min. ttl
  #cache-min-ttl: 300
forward-zone:
  name: "."
  forward-tls-upstream: yes
  # Google
  #forward-addr: 2001:4860:4860::8888@853
  #forward-addr: 2001:4860:4860::8844@853
  forward-addr: 8.8.8.8@853
  forward-addr: 8.8.4.4@853
  # Cloudflare DNS
  #forward-addr: 2606:4700:4700::1111@853
  #forward-addr: 2606:4700:4700::1001@853
  forward-addr: 1.1.1.1@853
  forward-addr: 1.0.0.1@853

Repository

Contributors

Change Log

  • 1.10.1-r0
    • unbound 1.10.1-r0
  • 1.10.1-r1
    • Auto update to 1.10.1-r1
  • 1.11.0-r0
    • Auto update to 1.11.0-r0
  • 1.12.0-r0
    • Auto update to 1.12.0-r0
  • 1.13.0-r3
    • Auto update to 1.13.0-r3
  • 1.13.1-r0
    • Auto update to 1.13.1-r0
  • 1.13.1-r1
    • Auto update to 1.13.1-r1
  • 1.13.1-r2
    • Auto update to 1.13.1-r2
  • 1.15.0-r0
    • Auto update to 1.15.0-r0
  • 1.15.0-r0-p1
    • Add docker push github workflow
  • 1.16.1-r0
    • Auto update to 1.16.1-r0
  • 1.17.1-r0
    • Auto update to 1.17.1-r0
  • 1.17.1-r2
    • Auto update to 1.17.1-r2
  • 1.17.1-r3
    • Auto update to 1.17.1-r3
  • 1.21.0-r0
    • Auto update to 1.21.0-r0

License

The MIT License

Copyright (c) 2024

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Docker - Unbound DNS over TLS (DoT) Forwarder

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published