Documentation ¶
Overview ¶
Package dns is an implementation of core.DNS feature.
Index ¶
- type ARecord
- type ClassicNameServer
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetHosts() map[string]*net.IPOrDomain
- func (c *Config) GetInternalHosts() map[string]net.IP
- func (m *Config) GetNameServers() []*net.Endpoint
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type IPRecord
- type LocalNameServer
- type NameServer
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassicNameServer ¶
func NewClassicNameServer ¶
func NewClassicNameServer(address net.Destination, dispatcher core.Dispatcher) *ClassicNameServer
func (*ClassicNameServer) Cleanup ¶
func (s *ClassicNameServer) Cleanup() error
func (*ClassicNameServer) HandleResponse ¶
func (s *ClassicNameServer) HandleResponse(payload *buf.Buffer)
type Config ¶
type Config struct { // Nameservers used by this DNS. Only traditional UDP servers are support at the moment. // A special value 'localhost' as a domain address can be set to use DNS on local system. NameServers []*net.Endpoint `protobuf:"bytes,1,rep,name=NameServers" json:"NameServers,omitempty"` // Static hosts. Domain to IP. Hosts map[string]*net.IPOrDomain `` /* 130-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Config) Descriptor ¶
func (*Config) GetNameServers ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
type LocalNameServer ¶
type LocalNameServer struct { }
type NameServer ¶
Click to show internal directories.
Click to hide internal directories.