Documentation ¶
Index ¶
- Constants
- type CustomHandler
- type Factory
- type IPResolver
- type LocalIfaceMsgFilter
- type Logger
- type MsgFilter
- type RespWriter
- func (w RespWriter) Close() error
- func (w RespWriter) Hijack()
- func (w RespWriter) LocalAddr() net.Addr
- func (w RespWriter) RemoteAddr() net.Addr
- func (w RespWriter) TsigStatus() error
- func (w RespWriter) TsigTimersOnly(bool)
- func (w RespWriter) Write([]byte) (int, error)
- func (w RespWriter) WriteMsg(msg *dns.Msg) error
- type Server
Constants ¶
View Source
const Domain = "local."
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomHandler ¶
type CustomHandler struct {
// contains filtered or unexported fields
}
func NewCustomHandler ¶
func NewCustomHandler(ipResolver IPResolver, logger Logger) CustomHandler
func (CustomHandler) ServeDNS ¶
func (d CustomHandler) ServeDNS(responseWriter dns.ResponseWriter, msg *dns.Msg)
type IPResolver ¶
type LocalIfaceMsgFilter ¶
type LocalIfaceMsgFilter struct {
// contains filtered or unexported fields
}
func NewLocalIfaceMsgFilter ¶
func NewLocalIfaceMsgFilter(logger Logger) *LocalIfaceMsgFilter
func (*LocalIfaceMsgFilter) UpdateIfacesContiniously ¶
func (f *LocalIfaceMsgFilter) UpdateIfacesContiniously()
type RespWriter ¶
type RespWriter struct {
// contains filtered or unexported fields
}
func (RespWriter) Close ¶
func (w RespWriter) Close() error
func (RespWriter) Hijack ¶
func (w RespWriter) Hijack()
func (RespWriter) LocalAddr ¶
func (w RespWriter) LocalAddr() net.Addr
func (RespWriter) RemoteAddr ¶
func (w RespWriter) RemoteAddr() net.Addr
func (RespWriter) TsigStatus ¶
func (w RespWriter) TsigStatus() error
func (RespWriter) TsigTimersOnly ¶
func (w RespWriter) TsigTimersOnly(bool)
Click to show internal directories.
Click to hide internal directories.