added dns check to WhoisEntry
authorRichard Penman
Tue, 12 Aug 2014 21:21:25 +0200
changeset 28 e94a8b50235d
parent 27 2afe979e4f4a
child 29 1ebe960587b1
added dns check to WhoisEntry
whois/parser.py
--- a/whois/parser.py	Mon Aug 11 17:26:08 2014 +0300
+++ b/whois/parser.py	Tue Aug 12 21:21:25 2014 +0200
@@ -60,6 +60,7 @@
         'name_servers':     'Name Server:\s?(.+)', # list of name servers
         'status':           'Status:\s?(.+)', # list of statuses
         'emails':           '[\w.-]+@[\w.-]+\.[\w]{2,4}', # list of email addresses
+        'dnssec':           'dnssec:\s*([\S]+)',
     }
 
     def __init__(self, domain, text, regex=None):
@@ -463,7 +464,7 @@
         'expiration_date':                'expires:\s*([\S]+)',
         'name_servers':                   'nserver:\s*([\S]+) \[\S+\]',  # list of name servers
         'name_server_statuses':           'nserver:\s*([\S]+) \[(\S+)\]',  # list of name servers and statuses
-        'dnssec':                   'dnssec:\s*([\S]+)',
+        'dnssec':                         'dnssec:\s*([\S]+)',
 	}
     def __init__(self, domain, text):
         if 'Domain not ' in text: