From ddfd53bf06b6a35b7d782c17ec0d8b465414936d Mon Sep 17 00:00:00 2001
From: Simon Zolin <s.zolin@adguard.com>
Date: Tue, 22 Oct 2019 11:39:37 +0300
Subject: [PATCH] * rdns,whois: get client info for all question types (not
 just A/AAAA)

---
 home/dns.go | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/home/dns.go b/home/dns.go
index 6cd4895a..4d722fa2 100644
--- a/home/dns.go
+++ b/home/dns.go
@@ -13,7 +13,6 @@ import (
 	"github.com/AdguardTeam/dnsproxy/proxy"
 	"github.com/AdguardTeam/golibs/log"
 	"github.com/joomcode/errorx"
-	"github.com/miekg/dns"
 )
 
 type dnsContext struct {
@@ -137,11 +136,6 @@ func isPublicIP(ip net.IP) bool {
 }
 
 func onDNSRequest(d *proxy.DNSContext) {
-	qType := d.Req.Question[0].Qtype
-	if qType != dns.TypeA && qType != dns.TypeAAAA {
-		return
-	}
-
 	ip := dnsforward.GetIPString(d.Addr)
 	if ip == "" {
 		// This would be quite weird if we get here