Documentation
¶
Overview ¶
The `dnsregister` task implements a server which can register DNS entries
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWithPlugin ¶
Create a new logger task with provider of other tasks
Types ¶
type Plugin ¶
type Plugin struct {
task.Plugin
Timeout_ types.Duration `json:"timeout,omitempty"` // Read timeout on HTTP requests
Delta_ types.Duration `json:"delta,omitempty"` // Time between updating information
Records_ []Record `json:"records"` // Records to register
}
type Record ¶
type Record struct {
Name string `json:"hostname"` // Name of record
Address string `json:"address,omitempty"` // Address of record
User string `json:"user,omitempty"` // Username for registration
Password string `json:"password,omitempty"` // Password for registration
}
type Register ¶
type Register struct {
// contains filtered or unexported fields
}
func (*Register) GetExternalAddress ¶
GetExternalAddress returns the current external IP address as reported by https://api.ipify.org
func (*Register) RegisterAddress ¶
RegisterAddress registers address with Google DNS and returns the response https://support.google.com/domains/answer/6147083?hl=en
Click to show internal directories.
Click to hide internal directories.