tsdns: response to type ANY queries

Signed-off-by: Dmytro Shynkevych <dmytro@tailscale.com>
reviewable/pr557/r1
Dmytro Shynkevych 6 years ago
parent c9e40abfb8
commit 3b36400e35
No known key found for this signature in database
GPG Key ID: FF5E2F3DAD97EA23

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

Loading…
Cancel
Save