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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user