Oz Tiram 4 years ago
parent
commit
be96d5c63c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      example.go

+ 2 - 1
example.go

@@ -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)
 }