From 591989455a2cd16abef0104eeb4f4827a31d9fde Mon Sep 17 00:00:00 2001 From: pengshiyu <1940607002@qq.com> Date: Wed, 30 Aug 2023 21:24:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20.kr=E5=9F=9F=E5=90=8D?= =?UTF-8?q?=E7=9A=84=E4=BF=A1=E6=81=AF=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/source/manual/question.md | 2 +- domain_admin/utils/whois_util/config.py | 10 +++++++++- domain_admin/utils/whois_util/whois-servers.txt | 2 +- tests/utils/test_whois_util.py | 3 ++- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/doc/source/manual/question.md b/doc/source/manual/question.md index 85cde2665d..b4451b325d 100644 --- a/doc/source/manual/question.md +++ b/doc/source/manual/question.md @@ -210,7 +210,7 @@ domain_admin{domain="www.taobao.com"} 37.0 ## 11、部分域名无法查询到信息 -已知不支持的域名后缀:`.lc`、`.ml`、`.ai` +已知不支持的域名后缀:`.lc`、`.ml`、`.ai`、`.my` ## 12、获取ingress的域名 diff --git a/domain_admin/utils/whois_util/config.py b/domain_admin/utils/whois_util/config.py index 9219de03c2..9da45d5708 100644 --- a/domain_admin/utils/whois_util/config.py +++ b/domain_admin/utils/whois_util/config.py @@ -4,6 +4,7 @@ @Date : 2023-03-25 """ from __future__ import print_function, unicode_literals, absolute_import, division + # 根服务器地址 ROOT_SERVER = 'whois.iana.org' @@ -81,7 +82,14 @@ 'im': { 'expire_time': 'Expiry Date', 'expire_time_format': '%d/%m/%Y %H:%M:%S', - } + }, + 'kr': { + 'whois_server': 'whois.kr', + 'registry_time': 'Registered Date', + "registry_time_format": '%Y. %m. %d.', + 'expire_time': 'Expiration Date', + "expire_time_format": '%Y. %m. %d.', + }, } # 国内cn域名注册商 diff --git a/domain_admin/utils/whois_util/whois-servers.txt b/domain_admin/utils/whois_util/whois-servers.txt index a65c49024b..ded1674a39 100644 --- a/domain_admin/utils/whois_util/whois-servers.txt +++ b/domain_admin/utils/whois_util/whois-servers.txt @@ -686,7 +686,7 @@ museum whois.museum music whois.nic.music mw whois.nic.mw mx whois.nic.mx -my whois.mynic.net.my +my whois.mynic.my mz whois.nic.mz na whois.na-nic.com.na nab whois.nic.nab diff --git a/tests/utils/test_whois_util.py b/tests/utils/test_whois_util.py index 48ba663210..5c8e8a0526 100644 --- a/tests/utils/test_whois_util.py +++ b/tests/utils/test_whois_util.py @@ -38,7 +38,8 @@ def test_get_domain_info(): # 'mikrotik.tw', # 'kingbus.com.tw', # 'pcits.com.sg', - 'token.im' + # 'token.im', + 'airdry.com.my' ] for domain in domain_list: