mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-03-09 22:13:02 +08:00
removing silly bind ttl
This commit is contained in:
parent
f1003b0910
commit
971ba8a16e
1 changed files with 0 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue