Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: go-acme/lego
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2aa38f9f48a43a260ca77fc83fbb729d5b5843c1
Choose a base ref
..
head repository: go-acme/lego
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cbadbfa6392dc49512220e7ef6f9ce3ad9af0843
Choose a head ref
Showing with 5 additions and 4 deletions.
  1. +5 −4 docs/content/usage/library/Writing-a-Challenge-Solver.md
9 changes: 5 additions & 4 deletions docs/content/usage/library/Writing-a-Challenge-Solver.md
Original file line number Diff line number Diff line change
@@ -59,15 +59,16 @@ For DNS-01, we'll just use `domain` and `keyAuth`.

```go
func (d *DNSProviderBestDNS) Present(domain, token, keyAuth string) error {
info := dns01.GetRecordInfo(domain, keyAuth)
info := dns01.GetRecordInfo(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.GetRecordInfo(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.