Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TkeyModeServer is used for server assigned keying TkeyModeServer uint16 // TkeyModeDH is used for Diffie-Hellman exchanged keying TkeyModeDH // TkeyModeGSS is used for GSS-API establishment TkeyModeGSS // TkeyModeResolver is used for resolver assigned keying TkeyModeResolver // TkeyModeDelete is used for key deletion TkeyModeDelete )
View Source
const (
// GSS is the RFC 3645 defined algorithm name
GSS = "gss-tsig."
)
Variables ¶
This section is empty.
Functions ¶
func ExchangeTKEY ¶
func ExchangeTKEY(host, keyname, algorithm string, mode uint16, lifetime uint32, input []byte, extra []dns.RR, tsigname, tsigalgo, tsigmac *string) (*dns.TKEY, []dns.RR, error)
ExchangeTKEY exchanges TKEY records with the given host using the given key name, algorithm, mode, and lifetime with the provided input payload. Any additional DNS records are also sent and the exchange can be secured with TSIG if a key name, algorithm and MAC are provided. The TKEY record is returned along with any other DNS records in the response along with any error that occurred.
func SplitHostPort ¶
SplitHostPort attempts to split a "hostname:port" string and return them as separate strings. If the host cannot be split then it is returned with the default DNS port "53".
Types ¶
Click to show internal directories.
Click to hide internal directories.