2021-06-06 23:13:55 +05:00
|
|
|
package powerdns
|
|
|
|
|
|
|
|
type zoneData struct {
|
|
|
|
Name string `json:"name"`
|
2021-06-07 12:14:21 +05:00
|
|
|
Type string `json:"type"`
|
2021-06-06 23:13:55 +05:00
|
|
|
RRSets []RRSet `json:"rrsets"`
|
|
|
|
Serial int64 `json:"serial"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type RRSet struct {
|
|
|
|
ChangeType string `json:"changetype"`
|
|
|
|
Name string `json:"name"`
|
2021-06-07 12:14:21 +05:00
|
|
|
Type string `json:"type"`
|
2021-06-06 23:13:55 +05:00
|
|
|
Records []Record `json:"records"`
|
|
|
|
TTL int64 `json:"ttl"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Record struct {
|
|
|
|
Content string `json:"content"`
|
|
|
|
Disabled bool `json:"disabled"`
|
|
|
|
}
|