Skip to content

Commit

Permalink
[SimpleDNS Plus 9.x] Fixed issue where txt record may not be recorded…
Browse files Browse the repository at this point in the history
… correctly. #52

Tested on SimpleDNS 9.1 (build 116)
  • Loading branch information
FuseCP-TRobinson committed Dec 6, 2024
1 parent 6d7db51 commit 1cd3d45
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ public static ZoneRecordsResponse ToZoneRecordsResponse(this DnsRecord record, s
}
response.Data = $"{record.RecordData}";
break;
case DnsRecordType.TXT:
if (!record.RecordData.StartsWith("\"") && record.RecordData.Length > 0)
{
response.Data = $"\"{record.RecordData}\"";
break;
}
response.Data = record.RecordData ?? "";
break;
default:
response.Data = record.RecordData ?? "";
break;
Expand Down

0 comments on commit 1cd3d45

Please sign in to comment.