From d3ad2e666a3f0a75b36dfedd2b222ef9cc3269ad Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Tue, 8 Oct 2013 23:54:36 +0200 Subject: [PATCH] Add nameserver rule --- pythonwhois/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pythonwhois/__init__.py b/pythonwhois/__init__.py index c341ccc..e0fdf8f 100644 --- a/pythonwhois/__init__.py +++ b/pythonwhois/__init__.py @@ -65,6 +65,7 @@ grammar = { '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})', + 'nserver:\s*(?P.+)\s*[\[]?', 'DNS[0-9]+:\s*(?P.+)', 'ns[0-9]+:\s*(?P.+)', '[^a-z0-9.-](?Pd?ns\.([a-z0-9-]+\.)+[a-z0-9]+)'],