2017-11-01 10:11:34 +00:00
|
|
|
package etcd
|
|
|
|
|
|
|
|
|
|
import (
|
2018-04-22 08:34:35 +01:00
|
|
|
"time"
|
2018-04-20 11:01:06 +01:00
|
|
|
|
2017-11-01 10:11:34 +00:00
|
|
|
"github.com/coredns/coredns/request"
|
|
|
|
|
)
|
|
|
|
|
|
2020-09-24 11:30:39 -07:00
|
|
|
// Serial returns the serial number to use.
|
2017-11-01 10:11:34 +00:00
|
|
|
func (e *Etcd) Serial(state request.Request) uint32 {
|
2026-01-01 13:50:29 +05:30
|
|
|
return uint32(time.Now().Unix()) // #nosec G115 -- Unix time to SOA serial, Year 2106 problem accepted
|
2017-11-01 10:11:34 +00:00
|
|
|
}
|
|
|
|
|
|
2020-09-24 11:30:39 -07:00
|
|
|
// MinTTL returns the minimal TTL.
|
2017-11-01 10:11:34 +00:00
|
|
|
func (e *Etcd) MinTTL(state request.Request) uint32 {
|
|
|
|
|
return 30
|
|
|
|
|
}
|