Verified Commit 6a57045f authored by heiko.reese's avatar heiko.reese 💤
Browse files

Set UDP packet site limit as recommended by https://www.dnsflagday.net/2020//#dns-flag-day-2020

parent 666d7e16
Pipeline #242764 passed with stages
in 2 minutes and 8 seconds
......@@ -51,8 +51,8 @@ func NameserverHasChallenge(nameserver, fqdn, challenge string) bool {
// build request
var msg dns.Msg
msg.SetQuestion(dns.CanonicalName(challengeName), dns.TypeTXT)
// Raise MTU limit from 512 to 4096 which is the default used by dig.
msg.SetEdns0(4096, false)
// Set packet size limit as recommended by https://www.dnsflagday.net/2020//#dns-flag-day-2020
msg.SetEdns0(1232, false)
// request all TXT records
TXTAnswer, _, err := client.Exchange(&msg, nameserver)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment