Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BindConfig ¶
type BindConfig struct { Configs []BindServerConfig Zones []string PollingManager *polling.PollingServer PublicAddress string }
BindConfig holds all the server configurations and a list of zones to serve
type BindServerConfig ¶
type BindServerConfig struct { // Address is the IP address that the listener will be // bound to when starting the server. // Address cannot be nil. If it is requested to bind // to a generic interface, use 0.0.0.0 to represent *:<port> Address *string Port *int Net *string // tcp, tcp-tls, udp TLS *TLSConfig // If TLS is enabled, Net is forced to tcp-tls }
BindServerConfig contains fields necessary to build a listener to serve requests
type Record ¶
type Record struct { FQDN *string // Required. All addresses are converted to a FQDN RecordType *string // Optional for Delete; Required for Upsert TTL *uint32 // Optional for Delete; Required for Upsert Value interface{} // Optional for Delete; Required for Upsert }
Record is used to update or delete a record from the zone
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a facade to work with DNS
func BindServer ¶
func BindServer(cfg *BindConfig) *Server
BindServer creates a new configured Server struct that can be started or stopped
type TLSConfig ¶
type TLSConfig struct { // CertFile must contain PEM encoded data. The CertFile // should contain intermediate certificates following the leaf // certificate to form a certificate chain. CertFile *string // KeyFile contains the private key that corresponds to the public key // in CertFile. KeyFile *string }
TLSConfig contains the path to PEM encoded certs
Click to show internal directories.
Click to hide internal directories.