Added DNSSEC cutoff

This commit is contained in:
Benjamyn Love 2017-09-25 11:41:04 +10:00
parent 146853001b
commit 144d676ecb

View File

@ -162,9 +162,12 @@ def parseWhois(whioisInfo):
S = re.compile("Status") S = re.compile("Status")
L = re.compile("^[Ll]") L = re.compile("^[Ll]")
E = re.compile("^[Ee]") E = re.compile("^[Ee]")
DNSSEC = re.compile("DNSSEC")
for str in whioisInfo: for str in whioisInfo:
str = str.strip() str = str.strip()
if DNSSEC.match(str):
return 0
if NS.match(str) or D.match(str) or R.match(str) or U.match(str) or S.match(str) or L.match(str) or E.match(str): if NS.match(str) or D.match(str) or R.match(str) or U.match(str) or S.match(str) or L.match(str) or E.match(str):
if "domain" in str or "Domain" in str and "Name" not in str or "Status" in str: if "domain" in str or "Domain" in str and "Name" not in str or "Status" in str:
if "name" not in str and "ID" not in str: if "name" not in str and "ID" not in str: