|
|
@ -17,6 +17,7 @@ |
|
|
|
package dns |
|
|
|
package dns |
|
|
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
import ( |
|
|
|
|
|
|
|
"encoding/json" |
|
|
|
"time" |
|
|
|
"time" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -28,13 +29,13 @@ const ( |
|
|
|
|
|
|
|
|
|
|
|
// SrvRecord - represents a DNS service record
|
|
|
|
// SrvRecord - represents a DNS service record
|
|
|
|
type SrvRecord struct { |
|
|
|
type SrvRecord struct { |
|
|
|
Host string `json:"host,omitempty"` |
|
|
|
Host string `json:"host,omitempty"` |
|
|
|
Port string `json:"port,omitempty"` |
|
|
|
Port json.Number `json:"port,omitempty"` |
|
|
|
Priority int `json:"priority,omitempty"` |
|
|
|
Priority int `json:"priority,omitempty"` |
|
|
|
Weight int `json:"weight,omitempty"` |
|
|
|
Weight int `json:"weight,omitempty"` |
|
|
|
Text string `json:"text,omitempty"` |
|
|
|
Text string `json:"text,omitempty"` |
|
|
|
Mail bool `json:"mail,omitempty"` // Be an MX record. Priority becomes Preference.
|
|
|
|
Mail bool `json:"mail,omitempty"` // Be an MX record. Priority becomes Preference.
|
|
|
|
TTL uint32 `json:"ttl,omitempty"` |
|
|
|
TTL uint32 `json:"ttl,omitempty"` |
|
|
|
|
|
|
|
|
|
|
|
// Holds info about when the entry was created first.
|
|
|
|
// Holds info about when the entry was created first.
|
|
|
|
CreationDate time.Time `json:"creationDate"` |
|
|
|
CreationDate time.Time `json:"creationDate"` |
|
|
|