1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Add TTL to BIND SoaInfo struct (#820)

Co-authored-by: Kevin Zander <Kevin.Zander@sony.com>
This commit is contained in:
Kevin Zander
2020-08-20 14:44:15 -05:00
committed by GitHub
parent b328bb1b2e
commit 79357bb667
3 changed files with 10 additions and 9 deletions

View File

@@ -85,10 +85,11 @@ type SoaInfo struct {
Retry uint32 `json:"retry"`
Expire uint32 `json:"expire"`
Minttl uint32 `json:"minttl"`
TTL uint32 `json:"ttl,omitempty"`
}
func (s SoaInfo) String() string {
return fmt.Sprintf("%s %s %d %d %d %d %d", s.Ns, s.Mbox, s.Serial, s.Refresh, s.Retry, s.Expire, s.Minttl)
return fmt.Sprintf("%s %s %d %d %d %d %d %d", s.Ns, s.Mbox, s.Serial, s.Refresh, s.Retry, s.Expire, s.Minttl, s.TTL)
}
// Bind is the provider handle for the Bind driver.