For ommited ttls fall back to $TTL or 3600
As per RFC 2308
This commit is contained in:
parent
7cdb2a8bc8
commit
464a7bacf4
7
zscan.go
7
zscan.go
|
@ -227,7 +227,8 @@ func parseZone(r io.Reader, origin, f string, t chan Token, include int) {
|
|||
return
|
||||
} else {
|
||||
h.Ttl = ttl
|
||||
defttl = ttl
|
||||
// Don't about the defttl, we should take the $TTL value
|
||||
// defttl = ttl
|
||||
}
|
||||
st = _EXPECT_ANY_NOTTL_BL
|
||||
|
||||
|
@ -371,7 +372,7 @@ func parseZone(r io.Reader, origin, f string, t chan Token, include int) {
|
|||
return
|
||||
} else {
|
||||
h.Ttl = ttl
|
||||
defttl = ttl
|
||||
// defttl = ttl // don't set the defttl here
|
||||
}
|
||||
st = _EXPECT_ANY_NOTTL_BL
|
||||
default:
|
||||
|
@ -410,7 +411,7 @@ func parseZone(r io.Reader, origin, f string, t chan Token, include int) {
|
|||
return
|
||||
} else {
|
||||
h.Ttl = ttl
|
||||
defttl = ttl
|
||||
// defttl = ttl // don't set the def ttl anymore
|
||||
}
|
||||
st = _EXPECT_RRTYPE_BL
|
||||
case _RRTYPE:
|
||||
|
|
Loading…
Reference in New Issue