crash.software
Projects
Pull Requests
Issues
Builds
sing-box
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
sing-box
Files
🤬
Sign In
46b2d3b8
ROOT
/
route
/
router_dns.go
Search
History
159 lines
|
ISO-8859-1
|
5 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
DNSReverseMapping
cache
:
*cache
LruCache
:
[netip
Addr
:
]
string
:
]
NewDNSReverseMapping
()
:
*DNSReverseMapping
LogDNSAnswers
(logger log.ContextLogger, ctx context.Context, domain string, answers []mDNS.RR)
fqdnToDomain
(fqdn string)
:
string
formatQuestion
(string string)
:
string
*DNSReverseMapping
Save
(address netip.Addr, domain string, ttl int)
Query
(address netip.Addr)
:
(string, bool)
*Router
matchDNS
(ctx context.Context)
:
(context.Context, dns.Transport, dns.DomainStrategy)
Exchange
(ctx context.Context, message *mDNS.Msg)
:
(*mDNS.Msg, error)
Lookup
(ctx context.Context, domain string, strategy dns.DomainStrategy)
:
([]netip.Addr, error)
LookupDefault
(ctx context.Context, domain string)
:
([]netip.Addr, error)
All occurrences
Please wait...
Page is in error, reload to recover