mirror of
				https://github.com/coredns/coredns.git
				synced 2025-11-03 18:53:13 -05:00 
			
		
		
		
	Add a dynamic SOA record (at least the serial and minttl). This create another interface that should be implemented by the backends. For now default to returning epoch in as a uint32 (no change from before). Lower the minTTL returned to 30s (from 60s)
		
			
				
	
	
		
			18 lines
		
	
	
		
			343 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			343 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package kubernetes
 | 
						|
 | 
						|
import (
 | 
						|
	"time"
 | 
						|
 | 
						|
	"github.com/coredns/coredns/request"
 | 
						|
)
 | 
						|
 | 
						|
// Serial implements the Transferer interface.
 | 
						|
func (e *Kubernetes) Serial(state request.Request) uint32 {
 | 
						|
	return uint32(time.Now().Unix())
 | 
						|
}
 | 
						|
 | 
						|
// MinTTL implements the Transferer interface.
 | 
						|
func (e *Kubernetes) MinTTL(state request.Request) uint32 {
 | 
						|
	return 30
 | 
						|
}
 |