Skip to content

Commit

Permalink
Send SOA with negative responses
Browse files Browse the repository at this point in the history
  • Loading branch information
42wim committed Jun 2, 2015
1 parent 0ed0883 commit 83aa6a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions command/agent/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ RPC:

// If we have no address, return not found!
if out.NodeServices == nil {
d.addSOA(d.domain, resp)
resp.SetRcode(req, dns.RcodeNameError)
return
}
Expand Down Expand Up @@ -469,6 +470,7 @@ RPC:

// If we have no nodes, return not found!
if len(out.Nodes) == 0 {
d.addSOA(d.domain, m)
resp.SetRcode(req, dns.RcodeNameError)
return
}
Expand Down

0 comments on commit 83aa6a8

Please sign in to comment.