Documentation ¶
Overview ¶
Package dyndns updates dynamic DNS hostnames. It can be used with services that support the DNS Update API:
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NoChange = NewError("nochg", "no settings changed") // Account errors. ErrAuth = NewError("badauth", "bad username or password") ErrDonator = NewError("!donator", "option available only to credited users") // Hostname errors. ErrDomain = NewError("notfqdn", "hostname is not a fully-qualified domain name") ErrNoHost = NewError("nohost", "hostname does not exist in this account") ErrNumHost = NewError("numhost", "too many hosts") ErrAbuse = NewError("abuse", "hostname blocked for update abuse") // User agent errors. ErrAgent = NewError("badagent", "bad user agent or http method") // Server errors. ErrDns = NewError("dnserror", "dns error") Err911 = NewError("911", "server problem or scheduled maintenance") )
Update protocol response codes.
http://dyn.com/support/developers/api/return-codes/
View Source
var UserAgent = "go-dyndns"
UserAgent identifies the client in update requests.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Code, Description string
}
Update protocol errors.
func NewError ¶
NewError returns a new Error from a return code and description.
Click to show internal directories.
Click to hide internal directories.