Skip to content

Instantly share code, notes, and snippets.

@st3fan
Created July 19, 2025 16:57
Show Gist options
  • Save st3fan/5ee93f152679d84a42177c7fff029570 to your computer and use it in GitHub Desktop.
Save st3fan/5ee93f152679d84a42177c7fff029570 to your computer and use it in GitHub Desktop.
-- Add all upstream DoT servers to one pool
newServer{address="tls://8.8.8.8", tlsHostname="dns.google"}
newServer{address="tls://8.8.4.4", tlsHostname="dns.google"}
newServer{address="tls://1.1.1.1", tlsHostname="cloudflare-dns.com"}
newServer{address="tls://1.0.0.1", tlsHostname="cloudflare-dns.com"}
-- Listen on port 53 (main DNS port)
addLocal("0.0.0.0:53")
-- Use round-robin or another strategy across all servers
setServerPolicy("roundrobin")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment