Giter VIP home page Giter VIP logo

docker-unbound's Introduction

Unbound (with DNSSEC validation)

Running

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.19.1

(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.19.1

Configuration

These options can be set via the environment variable -e flag:

  • DO_IPV6: Enable or disable ipv6. (Default: "yes", Possible Values: "yes, no")
  • DO_IPV4: Enable or disable ipv4. (Default: "yes", Possible Values: "yes, no")
  • DO_UDP: Enable or disable udp. (Default: "yes", Possible Values: "yes, no")
  • DO_TCP: Enable or disable tcp. (Default: "yes", Possible Values: "yes, no")
  • VERBOSITY: Verbosity number, 0 is least verbose. (Default: "0", Possible Values: "")
  • NUM_THREADS: Number of threads to create. 1 disables threading. (Default: "1", Possible Values: "")
  • SO_RCVBUFF: Buffer size for UDP port 53 incoming. Use 4m to catch query spikes for busy servers. (Default: "0", Possible Values: "")
  • SO_SNDBUF: Buffer size for UDP port 53 outgoing. Use 4m to handle spikes on very busy servers. (Default: "0", Possible Values: "")
  • SO_REUSEPORT: Use SO_REUSEPORT to distribute queries over threads. (Default: "no", Possible Values: "yes, no")
  • EDNS_BUFFER_SIZE: EDNS reassembly buffer to advertise to UDP peers. 1480 can solve fragmentation (timeouts). (Default: "4096", Possible Values: "")
  • MSG_CACHE_SIZE: The amount of memory to use for the message cache. Plain value in bytes or you can append k, m or G. (Default: "4m", Possible Values: "")
  • RRSET_CACHE_SIZE: The amount of memory to use for the RRset cache. Plain value in bytes or you can append k, m or G. (Default: "4m", Possible Values: "")
  • CACHE_MIN_TTL: The time to live (TTL) value lower bound, in seconds. If more than an hour could easily give trouble due to stale data. (Default: "0", Possible Values: "")
  • CACHE_MAX_TTL: The time to live (TTL) value cap for RRsets and messages in the cache. Items are not cached for longer. In seconds. (Default: "86400", Possible Values: "")
  • CACHE_MAX_NEGATIVE_TTL: The time to live (TTL) value cap for negative responses in the cache. (Default: "3600", Possible Values: "")
  • PREFETCH: Enable to automatically re-fetch cached records before they expire. (Default: "no", Possible Values: "yes, no")
  • HIDE_IDENTITY: Enable to not answer id.server and hostname.bind queries. (Default: "no", Possible Values: "yes, no")
  • HIDE_VERSION: Enable to not answer version.server and version.bind queries. (Default: "no", Possible Values: "yes, no")
  • STATISTICS_INTERVAL: print statistics to the log (for every thread) every N seconds. (Default: "0", Possible Values: "0, 1")
  • 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: "", "@")
  • REMOTE_CONTROL_ENABLE: Enable the remote control feature (Default "yes", Possible Values: "yes, no")

docker-unbound's People

Contributors

copyrights avatar endlesspancake avatar florenthemmi avatar freekers avatar mcfedr avatar obi12341 avatar rwky avatar sisheogorath avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

docker-unbound's Issues

Is the Dockerfile opensource?

Hi, I want to use your Dockerfile and upload to Docker Hub, off course with the credit.

But there seems to be no LICENSE file, so I am not sure that I can do it.

Could you add LICENSE to the repo please?

Unbound 1.16.0

Hey there,
just a post to inform you that unbound has been update to 1.16.0. Maybe, if you find time, you could update your docker files as well?
Thanks a lot and best regards!

resolv.conf setting

hi, was using and found i needed to set resolv.conf to 127.0.0.1 in order for requests to be serviced by unbound... thus modified run line became -

docker run --name unbound -d -p 53:53/udp -p 53:53 --dns="127.0.0.1" secns/unbound:1.5.6

Add ENV option to enable QNAME minimisation?

Is it possible to add an option to enable QNAME minimisation?

# See RFC 7816 "DNS Query Name Minimisation to Improve Privacy" for
# details.
qname-minimisation: yes.  

Thanks.

support with adguard

Can u help me how to get unbound + adguard setup?

So for adguard dns I would just add 127.0.0.1:5335 for ip4 and [..1]:5335 for ip6

Here my .yml

`version: "3"
services:
unbound:
image: ajoergensen/unbound
container_name: unbound

ports:
  - 53:53/udp
  - 53:53

environment:
  - DO_IPV6=yes
  - DO_IPV4=yes
  - DO_UDP=yes
  - DO_TCP=yes
  - VERBOSITY=0
  - NUM_THREADS=1
  - SO_RCVBUFF=0
  - SO_SNDBUF=0
  - SO_REUSEPORT=no
  - EDNS_BUFFER_SIZE=4096
  - MSG_CACHE_SIZE=4m
  - RRSET_CACHE_SIZE=4m
  - CACHE_MIN_TTL=0
  - CACHE_MAX_TTL=86400
  - CACHE_MAX_NEGATIVE_TTL=3600
  - HIDE_IDENTITY=yes
  - HIDE_VERSION=yes
  - STATISTICS_INTERVAL=0
  - STATISTICS_CUMULATIVE=no
  - EXTENDED_STATISTICS=no

restart: always

adguardhome:
image: adguard/adguardhome:latest
container_name: adguardhome

volumes:
  - ./work:/opt/adguardhome/work
  - ./conf:/opt/adguardhome/conf

ports:
  - 5335:53/tcp
  - 5335:53/udp
  - 380:80/tcp
  - 3000:3000/tcp
  - 367:67/udp
  - 368:68/tcp
  - 368:68/udp
  - 3443:443/tcp
  - 853:853/tcp

`

Kindly update the image to version 1.14.0

Please update the image to use version 1.14.0 :)

PS. Since Docker Hub has removed automatic image building for free accounts, let me know if you need help with setting up building images (for free) on Github and pushing them to Dockerhub.

Setting Authoritative NS'

I can't find your email address nor any way to contact you, so here we are.

I've adapted this into a podman pod, and I see how the internal unbound.conf is set. But there doesn't seem to be any way to set forward requests to for recursion. ('forward-zone')

Sure I could modify unbound.conf or add a file, but I have the container set for auto update and this would be overwritten. What to do?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.