Documentation ¶
Index ¶
- Variables
- func DNSDialContext(ctx context.Context, network, address string) (net.Conn, error)
- func DetectWildcard(domain, subdomain string, records []DNSAnswer) bool
- func DialContext(ctx context.Context, network, address string) (net.Conn, error)
- func NextResolverAddress() string
- func Reverse(addr string) (string, error)
- func SetCustomResolvers(resolvers []string)
- func ZoneTransfer(domain, sub, server string) ([]string, error)
- type DNSAnswer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Public & free DNS servers PublicResolvers = []string{ "1.1.1.1:53", "8.8.8.8:53", "64.6.64.6:53", "208.67.222.222:53", "77.88.8.8:53", "74.82.42.42:53", "1.0.0.1:53", "8.8.4.4:53", "208.67.220.220:53", "77.88.8.1:53", } CustomResolvers = []string{} )
Functions ¶
func DNSDialContext ¶
func DetectWildcard ¶
DetectWildcard - Checks subdomains in the wildcard cache for matches on the IP address
func NextResolverAddress ¶
func NextResolverAddress() string
NextResolverAddress - Requests the next server
func SetCustomResolvers ¶
func SetCustomResolvers(resolvers []string)
func ZoneTransfer ¶
Types ¶
type DNSAnswer ¶
type DNSAnswer struct { Name string `json:"name"` Type int `json:"type"` TTL int `json:"TTL"` Data string `json:"data"` }
func ExchangeConn ¶
ExchangeConn - Encapsulates miekg/dns usage
func ObtainAllRecords ¶
Click to show internal directories.
Click to hide internal directories.