Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheServer ¶ added in v1.13.1
func NewCacheServer ¶ added in v1.13.1
func NewCacheServer(space app.Space, config *Config) *CacheServer
func (*CacheServer) Get ¶ added in v1.13.1
func (this *CacheServer) Get(domain string) []net.IP
func (*CacheServer) GetCached ¶ added in v1.13.1
func (this *CacheServer) GetCached(domain string) []net.IP
@Private
func (*CacheServer) Release ¶ added in v1.13.1
func (this *CacheServer) Release()
type Config ¶ added in v1.13.1
type Config struct {
NameServers []v2net.Destination
}
type LocalNameServer ¶ added in v1.13.1
type LocalNameServer struct { }
func (*LocalNameServer) QueryA ¶ added in v1.13.1
func (this *LocalNameServer) QueryA(domain string) <-chan *ARecord
type NameServer ¶ added in v1.13.1
type PendingRequest ¶ added in v1.13.1
type PendingRequest struct {
// contains filtered or unexported fields
}
type Server ¶ added in v1.13.1
A DnsCache is an internal cache of DNS resolutions.
type UDPNameServer ¶ added in v1.13.1
func NewUDPNameServer ¶ added in v1.13.1
func NewUDPNameServer(address v2net.Destination, dispatcher dispatcher.PacketDispatcher) *UDPNameServer
func (*UDPNameServer) AssignUnusedID ¶ added in v1.13.1
func (this *UDPNameServer) AssignUnusedID(response chan<- *ARecord) uint16
@Private
func (*UDPNameServer) HandleResponse ¶ added in v1.13.1
func (this *UDPNameServer) HandleResponse(dest v2net.Destination, payload *alloc.Buffer)
@Private
func (*UDPNameServer) QueryA ¶ added in v1.13.1
func (this *UDPNameServer) QueryA(domain string) <-chan *ARecord
Click to show internal directories.
Click to hide internal directories.