Added extremely basic validation

This commit is contained in:
benjamyn committed 2018-03-17 22:01:12 +11:00
1 parent db30f02ffe
commit 8727e66ffb
2 files changed
+8 -3

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
{
"subdomains":["www", "mail", "ftp"],
"dnsrecords":["A", "MX", "TXT", "NS", "SOA"]
"dnsrecords":["A", "AAAA", "MX", "TXT", "NS", "SOA"]
}
+7 -2
View File
@@ -29,9 +29,14 @@ def printWhois(resultData):
pass
def parseInput(inData):
if inData.lower() == "quit":
tmpInData = inData.lower()
if tmpInData == "quit":
quit()
result = domainWhois(inData)
try:
result = domainWhois(inData)
except Exception as E:
print('%s : TLD most likely needs configuring' % (E))
result = "Error"
print("\nWhos Info")
printWhois(result)
print("\nDNS Records")