core

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayRecords

func DisplayRecords(domainName string, results []model.QueryResult)

func FilterQueryTypes added in v0.1.3

func FilterQueryTypes(queryTypes []model.QueryType, userSpecifiedQueryType string) []model.QueryType

FilterQueryTypes filters the queryTypes slice to only include the query type specified by the user.

func FormatTTL added in v0.4.0

func FormatTTL(ttl uint32) string

func GetQueryTypes

func GetQueryTypes() []model.QueryType

GetQueryTypes returns a slice of all supported DNS query types.

func PrepareDNSQuery

func PrepareDNSQuery(domainName string, queryType uint16) dns.Msg

PrepareDNSQuery prepares a DNS query for a given domain name and query type.

func SendDNSQuery

func SendDNSQuery(client *dns.Client, msg dns.Msg, dnsServerIP, dnsServerPort string) (*dns.Msg, time.Duration, error)

SendDNSQuery sends a DNS query to a given DNS server.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL