Commit 41b468f
committed
Always query DNS records over TCP instead of UDP
TXT records can be quite large, with is a problem for DNS challenges,
they don't fit in the 512 buffer especially if there are multiple.
DNS servers can increase the buffer size through EDNS0 extension,
and retry over TCP if that wasn't enough.
For the pebble puposes there isn't much reason to try UDP first,
it is possible to just always query DNS records over TCP, so we do.
Also see docs for Exchange function:
https://pkg.go.dev/github.com/miekg/dns#Client.Exchange
Was originally found in
#536 (comment)1 parent d180fbf commit 41b468f
2 files changed
Lines changed: 1 addition & 0 deletions
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
0 commit comments