|
@@ -36,6 +36,7 @@ func (e Example) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg)
|
|
|
// Debug log that we've have seen the query. This will only be shown when the debug plugin is loaded.
|
|
|
log.Debug("Received response")
|
|
|
|
|
|
+ fmt.Fprintln(out, r.QName())
|
|
|
// Wrap.
|
|
|
pw := NewResponsePrinter(w)
|
|
|
|
|
@@ -61,7 +62,7 @@ func NewResponsePrinter(w dns.ResponseWriter) *ResponsePrinter {
|
|
|
|
|
|
// WriteMsg calls the underlying ResponseWriter's WriteMsg method and prints "example" to standard output.
|
|
|
func (r *ResponsePrinter) WriteMsg(res *dns.Msg) error {
|
|
|
- fmt.Fprintln(out, "example")
|
|
|
+ fmt.Fprintln(out, "bumple")
|
|
|
return r.ResponseWriter.WriteMsg(res)
|
|
|
}
|
|
|
|