Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

ZoeyVid/cloudflared-dns

Repository files navigation

Cloudflared-DNS

version: "3"
services:
    cloudflared:
        container_name: cloudflared-dns
        image: zoeyvid/cloudflared-dns
        restart: always
        ports:
        - "127.0.0.1:53:53"
        - "127.0.0.1:53:53/udp"
        - "[::1]:53:53"
        - "[::1]:53:53/udp"
        environment:
        - "TZ=Europe/Berlin"
        dns:
        - 9.9.9.9
        - 149.112.112.112
        - 2620:fe::fe
        - 2620:fe::fe:9
        - 1.1.1.2
        - 1.0.0.2
        - 2606:4700:4700::1112
        - 2606:4700:4700::1002
        - 94.140.14.14
        - 94.140.15.15
        - 2a10:50c0::ad1:ff
        - 2a10:50c0::ad2:ff
        command: --upstream https://dns.adguard-dns.com/dns-query

Disable systemd-resolved (used on debian)

systemctl disable --now systemd-resolved
rm -rf /etc/resolv.conf
echo nameserver 127.0.0.1 >> /etc/resolv.conf