Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KIT-CA
acme4netvs
Commits
3839000d
Verified
Commit
3839000d
authored
Oct 21, 2022
by
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
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
VERSION
View file @
3839000d
0.5.
5
0.5.
6
dns_utils.go
View file @
3839000d
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment