dns

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDNS added in v0.0.12

func GetDNS(email string) domaincheck.DNS

func GetEmailProviderFromMx

func GetEmailProviderFromMx(dns domaincheck.DNS, knownProviders KnownProviders) (emailProvider, firewall string)

Types

type AuthorizedSenders

type AuthorizedSenders struct {
	Enterprise []string
	Hosting    []string
	Security   []string
	Webmail    []string
	Other      []string
}

func GetAuthorizedSenders

func GetAuthorizedSenders(dns domaincheck.DNS, knownProviders *KnownProviders) AuthorizedSenders

type KnownProviders

type KnownProviders struct {
	Enterprise ProviderCategory `toml:"enterprise"`
	Hosting    ProviderCategory `toml:"hosting"`
	Webmail    ProviderCategory `toml:"webmail"`
	Security   ProviderCategory `toml:"security"`
}

func GetKnownProviders

func GetKnownProviders() (*KnownProviders, error)

func (*KnownProviders) GetProviderByDomain

func (kp *KnownProviders) GetProviderByDomain(domain string) (string, string)

Helper function to get provider by domain

type ProviderCategory

type ProviderCategory struct {
	Type    string     `toml:"type"`
	Domains [][]string `toml:"domains"`
}

Jump to

Keyboard shortcuts

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