Skip to content

Commit

Permalink
修复 .kr域名的信息查询
Browse files Browse the repository at this point in the history
  • Loading branch information
mouday committed Aug 30, 2023
1 parent e1a5ac4 commit 5919894
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/source/manual/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ domain_admin{domain="www.taobao.com"} 37.0
## 11、部分域名无法查询到信息
已知不支持的域名后缀:`.lc`、`.ml`、`.ai`
已知不支持的域名后缀:`.lc`、`.ml`、`.ai`、`.my`
## 12、获取ingress的域名
Expand Down
10 changes: 9 additions & 1 deletion domain_admin/utils/whois_util/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@Date : 2023-03-25
"""
from __future__ import print_function, unicode_literals, absolute_import, division

# 根服务器地址
ROOT_SERVER = 'whois.iana.org'

Expand Down Expand Up @@ -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域名注册商
Expand Down
2 changes: 1 addition & 1 deletion domain_admin/utils/whois_util/whois-servers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion tests/utils/test_whois_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5919894

Please sign in to comment.