From f0c7915a3449b6dacae972584be09ffda865302c Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Fri, 21 Sep 2012 06:33:08 +0200 Subject: [PATCH] Make heuristics also detect name.com nameservers --- pythonwhois/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonwhois/__init__.py b/pythonwhois/__init__.py index e941be0..09720db 100644 --- a/pythonwhois/__init__.py +++ b/pythonwhois/__init__.py @@ -44,7 +44,7 @@ grammar = { 'Record maintained by:\s?(?P.+)', 'Registration Service Provided By:\s?(?P.+)'], 'whois_server': ['Registrar Whois:\s?(?P.+)'], - 'name_servers': ['(?P[a-z]*d?ns[0-9]+\.([a-z0-9-]+\.)+[a-z0-9]+)', + 'name_servers': ['(?P[a-z]*d?ns[0-9]+([a-z]{3})?\.([a-z0-9-]+\.)+[a-z0-9]+)', '(?P[a-z0-9-]+\.d?ns[0-9]*\.([a-z0-9-]+\.)+[a-z0-9]+)', '(?P([a-z0-9-]+\.)+[a-z0-9]+)(\s+([0-9]{1,3}\.){3}[0-9]{1,3})'], 'emails': ['(?P[\w.-]+@[\w.-]+\.[\w]{2,4})']