Verified Commit 3839000d authored by heiko.reese's avatar heiko.reese 💤
Browse files

Fix: Removed the old “TCP by default” code.

Release: v0.5.6
parent cf233f37
Pipeline #242761 passed with stages
in 2 minutes and 13 seconds
......@@ -48,14 +48,11 @@ func NameserverHasChallenge(nameserver, fqdn, challenge string) bool {
nameserver = strings.Join([]string{nameserver, "53"}, ":")
}
client.Net = "tcp"
// build request
var msg dns.Msg
msg.SetQuestion(dns.CanonicalName(challengeName), dns.TypeTXT)
// Raise MTU limit from 512 to 1280 which should be safe on all modern networks
// (see https://en.wikipedia.org/wiki/Maximum_transmission_unit#MTUs_for_common_media)
msg.SetEdns0(1280, false)
// Raise MTU limit from 512 to 4096 which is the default used by dig.
msg.SetEdns0(4096, 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