Skip to content

Commit fd0dcae

Browse files
author
MasterEvarior
committed
For TXT record any trailing dot is automatically removed
1 parent caf3f7c commit fd0dcae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func (t TXTRecord) toLibdnsRecord(zone string) libdns.Record {
177177
}
178178

179179
func (t TXTRecord) fromLibdnsRecord(record libdns.Record) HosttechRecord {
180-
t.Name = record.Name
180+
t.Name = RemoveTrailingDot(record.Name)
181181
t.Type = record.Type
182182
t.Text = record.Value
183183
t.TTL = durationToIntSeconds(record.TTL)

0 commit comments

Comments
 (0)