Hard code ttl to 60 for transformed records (#4)

This commit is contained in:
Craig Peterson 2016-09-28 12:32:36 -06:00 committed by GitHub
parent 3fb4f3b54c
commit 03d30b02c7

View file

@ -142,6 +142,7 @@ func import_transform(src_domain, dst_domain *models.DomainConfig, transforms []
rec2, _ := rec.Copy() rec2, _ := rec.Copy()
rec2.Name = rec2.NameFQDN rec2.Name = rec2.NameFQDN
rec2.NameFQDN = dnsutil.AddOrigin(rec2.Name, dst_domain.Name) rec2.NameFQDN = dnsutil.AddOrigin(rec2.Name, dst_domain.Name)
rec2.TTL = 60
return rec2 return rec2
} }
switch rec.Type { switch rec.Type {