dnsScan

package
v3.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NS recordType = iota
	A
	AAAA
	CNAME
	TXT
)

Variables

This section is empty.

Functions

func CheckDkim

func CheckDkim(selectorUrl string, resolver *net.Resolver) string

func CheckDmarc

func CheckDmarc(url string, resolver *net.Resolver) string

func CheckIpVersionCompatibility

func CheckIpVersionCompatibility(aRecords []string, aaaaRecords []string) string

func CheckMailConfig

func CheckMailConfig(url string, resolver *net.Resolver, txtRecords []string, dkimSelector string) []string

func CheckSpf

func CheckSpf(txtRecords []string) string

func GetAAAARecords

func GetAAAARecords(url string, resolver *net.Resolver) ([]string, error)

func GetARecords

func GetARecords(url string, resolver *net.Resolver) ([]string, error)

func GetCNAMERecord

func GetCNAMERecord(url string, resolver *net.Resolver) (string, error)

func GetDomainAccessibilityHints

func GetDomainAccessibilityHints(url string) []string

func GetDomainOwnerViaRDAP

func GetDomainOwnerViaRDAP(url string) ([]string, error)

func GetMXRecords

func GetMXRecords(url string, resolver *net.Resolver) ([]string, error)

func GetNSRecords

func GetNSRecords(url string, resolver *net.Resolver) ([]string, error)

func GetNameserverOwnerViaRDAP

func GetNameserverOwnerViaRDAP(resolver *net.Resolver, nsRecords []string) ([]string, error)

func GetTXTRecords

func GetTXTRecords(url string, resolver *net.Resolver) ([]string, error)

func IsDomainBlacklisted

func IsDomainBlacklisted(domain string, resolver *net.Resolver) ([]string, error)

func IsIpv4

func IsIpv4(ip string) bool

func PrintMailConfigScanResults

func PrintMailConfigScanResults(results []string)

func PrintResult

func PrintResult(result Result)

func ScanMailConfig

func ScanMailConfig(resolver *net.Resolver, inputUrl string, txtRecords []string, dkimSelector string) ([]string, error)

Types

type Result

type Result struct {
	NSRecords   []string
	ARecords    []string
	AAAARecords []string
	CNAMERecord string
	TXTRecords  []string
	MXRecords   []string
	SRVRecords  []string

	DomainOwners     []string
	NameserverOwners []string
	OpinionatedHints []string

	DomainIsBlacklistedAt []string

	IpVersionCompatibility   string
	DomainAccessibilityHints []string
}

func AdvancedScan

func AdvancedScan(status *status.Status, resolver *net.Resolver, inputUrl string, opinionated bool, followRedirects bool) (Result, error)

func GetAllRecords

func GetAllRecords(url string, resolver *net.Resolver) (Result, error)

func SimpleScan

func SimpleScan(resolver *net.Resolver, inputUrl string, followRedirects bool) (Result, error)

func (*Result) PrintAllDnsRecords

func (result *Result) PrintAllDnsRecords()

Jump to

Keyboard shortcuts

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