Skip to content

Commit

Permalink
luadns: fix cname support
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Sep 17, 2022
1 parent 0bcada7 commit f2a1739
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion providers/dns/luadns/luadns.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,12 @@ func (d *DNSProvider) Present(domain, token, keyAuth string) error {
return fmt.Errorf("luadns: failed to get zones: %w", err)
}

zone := findZone(zones, domain)
authZone, err := dns01.FindZoneByFqdn(fqdn)
if err != nil {
return fmt.Errorf("luadns: failed to find zone: %w", err)
}

zone := findZone(zones, authZone)
if zone == nil {
return fmt.Errorf("luadns: no matching zone found for domain %s", domain)
}
Expand Down

0 comments on commit f2a1739

Please sign in to comment.