Browse Source

Add explaining comment

Ask Bjørn Hansen 9 years ago
parent
commit
a707483290
1 changed files with 1 additions and 0 deletions
  1. 1 0
      serve.go

+ 1 - 0
serve.go

@@ -170,6 +170,7 @@ func serve(w dns.ResponseWriter, req *dns.Msg, z *Zone) {
 	}
 
 	if len(m.Answer) == 0 {
+		// Return a SOA so the NOERROR answer gets cached
 		m.Ns = append(m.Ns, z.SoaRR())
 	}