mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
trim trailing '.' from FQDN (#307)
This commit is contained in:
committed by
Craig Peterson
parent
7bd7105c44
commit
d5adb3faf6
@@ -88,7 +88,7 @@ var quotedStringRegexp = regexp.MustCompile("\"((?:[^\"\\\\]|\\\\.)*)\"")
|
||||
|
||||
func toRecord(r *namecom.Record) *models.RecordConfig {
|
||||
rc := &models.RecordConfig{
|
||||
NameFQDN: r.Fqdn,
|
||||
NameFQDN: strings.TrimSuffix(r.Fqdn, "."),
|
||||
Type: r.Type,
|
||||
Target: r.Answer,
|
||||
TTL: r.TTL,
|
||||
|
Reference in New Issue
Block a user