Fix Corefile parsing

Fix some file/secondary issues when parsing a Corefile, also allow

for multiple origins to be specified. Also don't fail on startup when

a zonetransfer fails.



Fixes: #54
This commit is contained in:
Miek Gieben
2016-04-03 15:52:23 +01:00
parent e41e8683bd
commit 3b25bfd7ae
5 changed files with 32 additions and 38 deletions

View File

@@ -273,6 +273,7 @@ func (s *Server) ServeDNS(w dns.ResponseWriter, r *dns.Msg) {
b := make([]byte, len(q))
off, end := 0, false
ctx := context.Background()
for {
l := len(q[off:])
for i := 0; i < l; i++ {