mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-12 08:04:28 +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.NameFQDN = strings.ToLower(strings.TrimSuffix(header.Name, "."))
|
||||||
rc.Name = strings.ToLower(dnsutil.TrimDomainName(header.Name, origin))
|
rc.Name = strings.ToLower(dnsutil.TrimDomainName(header.Name, origin))
|
||||||
rc.TTL = header.Ttl
|
rc.TTL = header.Ttl
|
||||||
if rc.TTL == models.DefaultTTL {
|
|
||||||
rc.TTL = 0
|
|
||||||
}
|
|
||||||
switch v := rr.(type) {
|
switch v := rr.(type) {
|
||||||
case *dns.A:
|
case *dns.A:
|
||||||
rc.Target = v.A.String()
|
rc.Target = v.A.String()
|
||||||
|
|
Loading…
Add table
Reference in a new issue