1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

removing silly bind ttl

This commit is contained in:
Craig Peterson
2016-12-16 13:28:02 -07:00
parent f1003b0910
commit 971ba8a16e

View File

@@ -72,9 +72,6 @@ func rrToRecord(rr dns.RR, origin string, replace_serial uint32) (models.RecordC
rc.NameFQDN = strings.ToLower(strings.TrimSuffix(header.Name, "."))
rc.Name = strings.ToLower(dnsutil.TrimDomainName(header.Name, origin))
rc.TTL = header.Ttl
if rc.TTL == models.DefaultTTL {
rc.TTL = 0
}
switch v := rr.(type) {
case *dns.A:
rc.Target = v.A.String()