Documentation ¶
Overview ¶
Package dns64 implements a plugin that performs DNS64.
Index ¶
- Variables
- type DNS64
- func (d *DNS64) DoDNS64(ctx context.Context, w dns.ResponseWriter, r *dns.Msg, origResponse *dns.Msg) (*dns.Msg, error)
- func (d *DNS64) Name() string
- func (d *DNS64) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)
- func (d *DNS64) Synthesize(origReq, origResponse, resp *dns.Msg) *dns.Msg
- type UpstreamInt
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RequestsTranslatedCount is the number of DNS requests translated by dns64. RequestsTranslatedCount = promauto.NewCounterVec(prometheus.CounterOpts{ Namespace: plugin.Namespace, Subsystem: pluginName, Name: "requests_translated_total", Help: "Counter of DNS requests translated by dns64.", }, []string{"server"}) )
Functions ¶
This section is empty.
Types ¶
type DNS64 ¶
type DNS64 struct { Next plugin.Handler Prefix *net.IPNet TranslateAll bool // Not comply with 5.1.1 Upstream UpstreamInt }
DNS64 performs DNS64.
func (*DNS64) DoDNS64 ¶
func (d *DNS64) DoDNS64(ctx context.Context, w dns.ResponseWriter, r *dns.Msg, origResponse *dns.Msg) (*dns.Msg, error)
DoDNS64 takes an (empty) response to an AAAA question, issues the A request, and synthesizes the answer. Returns the response message, or error on internal failure.
Click to show internal directories.
Click to hide internal directories.