Created
March 28, 2024 09:57
-
-
Save Nathanwoodburn/96259d429936ec260c033091ece68cf4 to your computer and use it in GitHub Desktop.
dnsdist.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
newServer({address="139.144.68.241", name="HNSDNS 1"}) | |
newServer({address="139.144.68.242", name="HNSDNS 2"}) | |
setLocal('0.0.0.0:53') | |
addDOHLocal('0.0.0.0', '/etc/letsencrypt/live/hnsdoh.com/fullchain.pem', '/etc/letsencrypt/live/hnsdoh.com/privkey.pem', {"/", "/dns-query"}, { reusePort=true,maxInFlight=10}) | |
addTLSLocal('0.0.0.0', '/etc/letsencrypt/live/hnsdoh.com/fullchain.pem', '/etc/letsencrypt/live/hnsdoh.com/privkey.pem',{ reusePort=true,maxInFlight=10}) | |
addACL('0.0.0.0/0') | |
map = { newDOHResponseMapEntry("^/$", 307, "https://welcome.hnsdoh.com") } | |
dohFE = getDOHFrontend(0) | |
dohFE:setResponsesMap(map) | |
setKey("csl2icaGACsP3+M9tx55c8+dBxVCnlnqAHEC92P55eo=") | |
controlSocket('127.0.0.1:5199') | |
setVerbose(true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DoT log after sending a request
kdig @<domain> +tls <request>