tsdns: response to type ANY queries

Signed-off-by: Dmytro Shynkevych <dmytro@tailscale.com>
This commit is contained in:
Dmytro Shynkevych
2020-07-14 18:47:49 -04:00
parent c9e40abfb8
commit 3b36400e35

View File

@@ -439,7 +439,7 @@ func (r *Resolver) respond(query []byte) ([]byte, error) {
}
switch resp.Question.Type {
case dns.TypeA, dns.TypeAAAA:
case dns.TypeA, dns.TypeAAAA, dns.TypeALL:
domain := resp.Question.Name.String()
// Strip off the trailing period.
// This is safe: Name is guaranteed to have a trailing period by construction.