zeekzag/stubby

By zeekzag

Updated about 2 years ago

Multiarch Stubby image. Compatible with Quad9, Cloudflare, NextDNS and others.

Image
Networking
0

722

zeekzag/stubby repository overview

Simple alpine image for running Stubby in a container. Runs Quad9 (9.9.9.9) by default.

I use this snippet to deploy it. You can (and should) adjust the ports to your needs:

version: "3.9"
services:
  stubby:
    container_name: stubby
    hostname: stubby
    image: zeekzag/stubby:latest
    ports:
      - target: 53
        published: 53
        protocol: tcp
        mode: host
      - target: 53
        published: 53
        protocol: udp
        mode: host
    environment:
      # Use your own TZ
      TZ: Europe/Warsaw 
    restart: always

If you want to use your own stubby.yml config, you can add this snippet to the compose file:

    volumes: 
      - type: bind
        source: /home/${USER}/dns/stubby.yml # path to your stubby.yml
        target: /etc/stubby/stubby.yml
        read_only: true

Example stubby.yml with other DNS servers preconfigured. Just uncomment the ones you want to use or add your own.

Tag summary

Content type

Image

Digest

sha256:6b9581e96

Size

9 MB

Last updated

about 2 years ago

docker pull zeekzag/stubby:debug