Documentation ¶
Index ¶
- Constants
- Variables
- func GetDomainSuffix(name string) string
- func GetRootDomain(name string) (string, error)
- func QueryDNSCnameRecord(domain string) *dns.CNAME
- func QueryDNSSRVRecord(domain string) *dns.SRV
- func SetFQDN(domain string) string
- func ToDomainWithDot(domain string) string
- func TrimDomainDot(domain string) string
Constants ¶
View Source
const (
DefaultDNSServer = "8.8.8.8:53"
)
Variables ¶
View Source
var ( DNSTimeout = 3 DNSRetry = 3 )
Functions ¶
func GetDomainSuffix ¶
func GetRootDomain ¶
func QueryDNSCnameRecord ¶
func QueryDNSSRVRecord ¶
func ToDomainWithDot ¶
func TrimDomainDot ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.