Skip to content

Commit b4b098d

Browse files
fixed delete all issue
1 parent e363135 commit b4b098d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AcmeCaPlugin/Clients/DNS/Rfc2136DnsProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ public async Task<bool> DeleteRecordAsync(string recordName)
126126
// Create the update message
127127
var msg = new DnsUpdateMessage { ZoneName = DomainName.Parse(_zoneName) };
128128

129-
// Delete all TXT records for this name
129+
// Delete all TXT records for this name using DeleteAllRecordsUpdate
130130
var domainName = DomainName.Parse(cleanName);
131-
msg.Updates.Add(new DeleteRecordUpdate(new TxtRecord(domainName, 0, string.Empty)));
131+
msg.Updates.Add(new DeleteAllRecordsUpdate(domainName, RecordType.Txt));
132132

133133
// Sign with TSIG
134134
msg.TSigOptions = new TSigRecord(

0 commit comments

Comments
 (0)