-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot lookup .kr domains #207
Comments
Do you have an IP that I can test? My tests for KRNIC are working ok. |
@jkellson Any update on IPs you were having issues with? |
@secynic You can reproduce this error on : 1.11.1.1 ssl.CertificateError: hostname '후이즈검색.한국' doesn't match either of 'whois.kisa.or.kr', 'whois.kr', 'whois.nic.or.kr', 'xn--c79as89aj0e29b77z.kr', 'xn--c79as89aj0e29b77z.xn--3e0b707e' Full stacktrace : https://pastebin.com/Ud1xAgTh |
Quick work arround : set a HTTPSHandler import ssl
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
https_handler = request.HTTPSHandler(context=ctx)
opener = request.build_opener(https_handler)
obj = IPWhois(self.lock, proxy_opener=opener) |
@secynic To reproduce: from ipwhois import IPWhois
obj = IPWhois('1.11.1.1')
results = obj.lookup_rdap(depth=1) @noJ0y will that disable TLS on subsequent requests ? |
@noJ0y Are you still having this issue? Can you try testing the dev branch? That is pointing to the xn domain now, due to #243 |
I have this error too. Is it solved? Should I try the dev branch, Still on python2.7...... Weird.... I've changed line 111 in nir.py from |
This is fixed in the dev branch, please let me know if you still have issues |
Still happening on the latest git version
|
I got same error, too. But I met 2 deferent cases in the same ipwhois version. First, It was OK on my laptop, but same error occurred on an old system. It looks like the openssl/python ssl library version issues. |
This is starting to annoy me. They keep adding DNS entries. Browsing to https://whois.kisa.or.kr redirected me to https://후이즈검색.한국/ I should add that this new entry is not listed in their cert Subject Alternate Names. Will need to figure out how to deal with this without compromising cert checks. |
@toomuchio @eureka386 Can you tell me what Python and openssl versions you got this error on? I am not able to replicate the error in my tests. |
The troubled version is 3.6. As I told you, I'm not sure but It looks like the native urllib.request library issue. // python3.6
.... ssl.CertificateError: hostname '후이즈검색.한국' doesn't match either of 'whois.kisa.or.kr', 'xn--c79as89aj0e29b77z.xn--3e0b707e', 'whois.kr', 'xn--c79as89aj0e29b77z.kr', 'whois.nic.or.kr' <= ssl errors |
So it looks like Python 3.7 and later use openssl for hostname checks and cert validation. Requests uses urllib3 which implements its own hostname checks. I am trying to figure out how to get this working for <3.7 without adding a dependency for Requests. |
fwiw.. the change as mentioned in #207 (comment) worked around this issue. though I suspect it's a temp thing. |
I have similar problem with ipwhois. I get a error: ipwhois.exceptions.HTTPLookupError: HTTP lookup failed for http://rdap.db.ripe.net/ip/94.231.107.241. I have Python 3.9.2 |
Other domains work fine, but when I try to lookup .kr domain, I get:
Do you know, what might be the problem?
The text was updated successfully, but these errors were encountered: