Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseModifier ¶
type ResponseModifier struct {
dns.ResponseWriter
}
func NewResponseModifier ¶
func NewResponseModifier(w dns.ResponseWriter) *ResponseModifier
Returns a dns.Msg modifier that replaces CNAME on root zones with other records.
func (*ResponseModifier) Hijack ¶
func (r *ResponseModifier) Hijack()
Hijack implements dns.Hijacker. It simply wraps the underlying ResponseWriter's Hijack method if there is one, or returns an error.
Click to show internal directories.
Click to hide internal directories.