skynetservices/skydns

Record TTL will be set to default TTL, if it is larger than default in etcd

gwtony opened this issue · 1 comments

In doc, ttl means "default TTL in seconds to use on replies when none is set in etcd, defaults to 3600."
But if a record ttl is set larger than default(example 7200), the answer will be 3600.
I found this in code
for _, r := range m.Answer {
r.Header().Ttl = minttl
}
So ttl is not only used on replies when non is set but also larger than default set in etcd, this is not mentioned in doc.
Is it a designed feature or not ?

I found the describtion in doc, it is not a issue