crash.software
Projects
Pull Requests
Issues
Builds
bearer
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
bearer
Files
🤬
Sign In
26c7682f
ROOT
/
pkg
/
util
/
url
/
domain_resolver.go
Search
History
111 lines
|
ISO-8859-1
|
2 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
regexpDomainSplitMatcher
DomainResolver
Enabled
:
bool
Timeout
:
time.Duration
LookupIPAddr
:
func(ctx context.Context, host string) ([]net.IPAddr, error)
LookupNS
:
func(ctx context.Context, host string) ([]*net.NS, error)
NewDomainResolver
(enabled bool, timeout time.Duration)
:
*DomainResolver
NewDomainResolverDefault
()
:
*DomainResolver
getStaticDomain
(domain string)
:
string
*DomainResolver
CanReach
(domain string)
:
bool
isNameserver
(domain string, staticDomain string, resolverContext context.Context)
:
bool
domainResolves
(domain string, resolverContext context.Context)
:
bool
All occurrences
Please wait...
Page is in error, reload to recover