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})']