whois/whois.py
changeset 122 95feee1af1da
parent 112 8acab8765146
child 123 03c72d0d1182
--- a/whois/whois.py	Fri Jan 20 15:25:04 2017 +0800
+++ b/whois/whois.py	Fri Jan 20 15:33:38 2017 +0800
@@ -86,6 +86,7 @@
                     break
         return nhost
 
+
     def whois(self, query, hostname, flags, many_results=False):
         """Perform initial lookup with TLD whois server
         then, if the quick flag is false, search that result
@@ -108,10 +109,10 @@
             if hostname == NICClient.DENICHOST:
                 query_bytes = "-T dn,ace -C UTF-8 " + query
             elif hostname.endswith(NICClient.QNICHOST_TAIL) and many_results:
-                query_bytes = '=' + query
+                query_bytes = '='
             else:
                 query_bytes = query
-            s.send((query_bytes).encode('idna') + b"\r\n")
+            s.send((query_bytes) + b"\r\n")
             # recv returns bytes
             while True:
                 d = s.recv(4096)