diff --git a/CHANGES.rst b/CHANGES.rst index 663cb00..f0998b7 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -15,6 +15,7 @@ Changelog - Removed deprecated allow_permutations parameter (#230) - Fixed ASNOrigin lookups (#216) - Fixed bug in ASNOrigin lookups when multiple asn_methods provided (#216) +- Fixed bug in KRNIC queries due to a change in their service (#243) 1.1.0 (2019-02-01) ------------------ diff --git a/ipwhois/nir.py b/ipwhois/nir.py index 2c470ac..ea53987 100644 --- a/ipwhois/nir.py +++ b/ipwhois/nir.py @@ -108,9 +108,14 @@ }, 'krnic': { 'country_code': 'KR', - 'url': 'https://whois.kisa.or.kr/eng/whois.jsc', + 'url': 'https://xn--c79as89aj0e29b77z.xn--3e0b707e/eng/whois.jsc', 'request_type': 'POST', - 'request_headers': {'Accept': 'text/html'}, + 'request_headers': { + 'Accept': 'text/html', + 'Referer': ( + 'https://xn--c79as89aj0e29b77z.xn--3e0b707e/eng/whois.jsp' + ), + }, 'form_data_ip_field': 'query', 'fields': { 'name': r'(Organization Name)[\s]+\:[^\S\n]+(?P.+?)\n',