mirror of
https://github.com/go-acme/lego
synced 2026-03-14 14:35:48 +01:00
chore: replace GetRecord by GetChallengeInfo (#1863)
This commit is contained in:
parent
2c9f6b19dd
commit
e638d79643
122 changed files with 927 additions and 901 deletions
|
|
@ -59,15 +59,16 @@ For DNS-01, we'll just use `domain` and `keyAuth`.
|
|||
|
||||
```go
|
||||
func (d *DNSProviderBestDNS) Present(domain, token, keyAuth string) error {
|
||||
fqdn, value := dns01.GetRecord(domain, keyAuth)
|
||||
info := dns01.GetChallengeInfo(domain, keyAuth)
|
||||
// make API request to set a TXT record on fqdn with value and TTL
|
||||
return nil
|
||||
}
|
||||
```
|
||||
|
||||
After calling `dns01.GetRecord(domain, keyAuth)`, we now have the information we need to make our API request and set the TXT record:
|
||||
- `fqdn` is the fully qualified domain name on which to set the TXT record.
|
||||
- `value` is the record's value to set on the record.
|
||||
After calling `dns01.GetChallengeInfo(domain, keyAuth)`, we now have the information we need to make our API request and set the TXT record:
|
||||
- `FQDN` is the fully qualified domain name on which to set the TXT record.
|
||||
- `EffectiveFQDN` is the fully qualified domain name after the CNAMEs resolutions on which to set the TXT record.
|
||||
- `Value` is the record's value to set on the record.
|
||||
|
||||
So then you make an API request to the DNS service according to their docs.
|
||||
Once the TXT record is set on the domain, you may return and the challenge will proceed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue