dnsinformation

package
v0.0.0-...-b791eb8 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DMARCLookupString = "_dmarc."
	DMARCValid        = "v=DMARC1"
)
View Source
const (
	DKIMValid = "v=DKIM1"
)
View Source
const (
	ErrorMessage = "Unknown or Classified"
)

Variables

View Source
var (
	DKIMSelectors = []string{
		"default._domainkey",
		"google._domainkey",
		"mail._domainkey",
		"selector1._domainkey",
		"selector2._domainkey",
	}
)

Functions

func GetASNInfo

func GetASNInfo(ip string, apiToken string) (*dto.IPInfoResponse, error)

GetASNInfo fetches ASN information for a given IP address.

func GetASNInfoPrompt

func GetASNInfoPrompt(input string, apiToken string)

GetASNInfoPrompt handles response for asn info

func GetDKIMPrompt

func GetDKIMPrompt(input string)

GetDKIMPrompt fetches the DKIM record for a given domain.

func GetDMARCPrompt

func GetDMARCPrompt(input string)

GetDMARCPrompt fetches the DMARC record for a given domain.

func GetDMARCRecordNSLookup

func GetDMARCRecordNSLookup(domain string) ([]string, error)

GetTXTRecordNSLookup fetch txt ns lookup

func GetMXPrompt

func GetMXPrompt(input string)

GetMXPrompt is MX prompt

func GetNS

func GetNS(domain string) ([]string, error)

GetNS fetches the NS records for a given domain.

func GetNSPrompt

func GetNSPrompt(input string)

GetNSPrompt is ns prompt for response

func GetPTRPrompt

func GetPTRPrompt(input string, isIp bool)

GetPTRPrompt prompt

func GetRegistrarPromt

func GetRegistrarPromt(input string, isIP bool)

GetRegistrarPromt ...

func GetSPFPrompt

func GetSPFPrompt(input string)

GetSPFPrompt is prompt for spf

func GetTXT

func GetTXT(domain string) ([]string, error)

GetTXT fetches the TXT records for a given domain.

func GetTXTFromAllOption

func GetTXTFromAllOption(domain string) ([]string, error)

GetTXTFromAllOption fetches the TXT records for a given domain from ns lookup too.

func GetTXTPrompt

func GetTXTPrompt(input string)

GetTXTPrompt

func GetTXTRecordNSLookup

func GetTXTRecordNSLookup(domain string) ([]string, error)

GetTXTRecordNSLookup fetch txt ns lookup

func HasDMARCRecord

func HasDMARCRecord(record string) bool

func HasInvalidSPFRecord

func HasInvalidSPFRecord(record string) bool

HasInvalidSPFRecord is invalid spf

func HasSPFRecord

func HasSPFRecord(record string) bool

HasSPFRecord has spf

func IsValidSPF

func IsValidSPF(record string) bool

IsValidSPF is valid spf

func QueryDNS

func QueryDNS(domain string, dnsType uint16, server string) ([]string, error)

QueryDNS performs a DNS query for a given domain and DNS record type.

func ResolvedIPPrompt

func ResolvedIPPrompt(input string)

ResolvedIPPrompt...

Types

This section is empty.

Jump to

Keyboard shortcuts

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