Documentation ¶
Index ¶
- Constants
- Variables
- func GetASNInfo(ip string, apiToken string) (*dto.IPInfoResponse, error)
- func GetASNInfoPrompt(input string, apiToken string)
- func GetDKIMPrompt(input string)
- func GetDMARCPrompt(input string)
- func GetDMARCRecordNSLookup(domain string) ([]string, error)
- func GetMXPrompt(input string)
- func GetNS(domain string) ([]string, error)
- func GetNSPrompt(input string)
- func GetPTRPrompt(input string, isIp bool)
- func GetRegistrarPromt(input string, isIP bool)
- func GetSPFPrompt(input string)
- func GetTXT(domain string) ([]string, error)
- func GetTXTFromAllOption(domain string) ([]string, error)
- func GetTXTPrompt(input string)
- func GetTXTRecordNSLookup(domain string) ([]string, error)
- func HasDMARCRecord(record string) bool
- func HasInvalidSPFRecord(record string) bool
- func HasSPFRecord(record string) bool
- func IsValidSPF(record string) bool
- func QueryDNS(domain string, dnsType uint16, server string) ([]string, error)
- func ResolvedIPPrompt(input string)
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 ¶
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 ¶
GetTXTRecordNSLookup fetch txt ns lookup
func GetTXTFromAllOption ¶
GetTXTFromAllOption fetches the TXT records for a given domain from ns lookup too.
func GetTXTRecordNSLookup ¶
GetTXTRecordNSLookup fetch txt ns lookup
func HasDMARCRecord ¶
func HasInvalidSPFRecord ¶
HasInvalidSPFRecord is invalid spf
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.