mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-07 13:44:18 +08:00
trim trailing '.' from FQDN (#307)
This commit is contained in:
parent
7bd7105c44
commit
d5adb3faf6
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue