fix(namecom): detect existing root host domains

This commit is contained in:
Quentin McGaw
2024-06-13 19:15:59 +00:00
parent 987138dfc1
commit c1bf7a49c1

View File

@@ -54,6 +54,9 @@ func (p *Provider) getRecordID(ctx context.Context, client *http.Client,
}
for _, record := range data.Records {
if record.Host == "" {
record.Host = "@"
}
if record.Host == p.host && record.Type == recordType {
return record.RecordID, nil
}