mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 00:04:15 -04:00
This reverts commit 68f1dd5ddf.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
@@ -1,17 +1,25 @@
|
||||
package etcd
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/coredns/coredns/request"
|
||||
|
||||
"github.com/miekg/dns"
|
||||
)
|
||||
|
||||
// Serial returns the serial number to use.
|
||||
// Serial implements the Transferer interface.
|
||||
func (e *Etcd) Serial(state request.Request) uint32 {
|
||||
return uint32(time.Now().Unix())
|
||||
}
|
||||
|
||||
// MinTTL returns the minimal TTL.
|
||||
// MinTTL implements the Transferer interface.
|
||||
func (e *Etcd) MinTTL(state request.Request) uint32 {
|
||||
return 30
|
||||
}
|
||||
|
||||
// Transfer implements the Transferer interface.
|
||||
func (e *Etcd) Transfer(ctx context.Context, state request.Request) (int, error) {
|
||||
return dns.RcodeServerFailure, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user