From 58165a3be732ddc3f8d1df3c1137cd705226fca5 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Fri, 21 Sep 2012 07:32:19 +0200 Subject: [PATCH] Make Gandi DNS nameserver lookup work properly --- pythonwhois/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pythonwhois/__init__.py b/pythonwhois/__init__.py index 838dddd..40ac193 100644 --- a/pythonwhois/__init__.py +++ b/pythonwhois/__init__.py @@ -58,6 +58,7 @@ grammar = { '(?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})', 'DNS[0-9]+:\s*(?P.+)', + 'ns[0-9]+:\s*(?P.+)', '[^a-z0-9-](?Pdns\.([a-z0-9-]+\.)+[a-z0-9]+)'], 'emails': ['(?P[\w.-]+@[\w.-]+\.[\w]{2,4})'] },