jxy@jkxxx:~/kashifpk-DNS-NG-c326f83$ python DNS_NG.py
Traceback (most recent call last):
File "DNS_NG.py", line 122, in
factory = MyDNSServerFactory(clients=[resolver])
File "DNS_NG.py", line 24, in init
self.RM = RedirectManager()
File "/home/jay/kashifpk-DNS-NG-c326f83/redirect_manager.py", line 17, in init
self.load_redirects()
File "/home/jxy/kashifpk-DNS-NG-c326f83/redirect_manager.py", line 35, in load_redirects
'domain_re': re.compile(R.query_domain)
File "/usr/lib/python2.7/re.py", line 190, in compile
return _compile(pattern, flags)
File "/usr/lib/python2.7/re.py", line 244, in _compile
raise error, v # invalid expression
sre_constants.error: nothing to repeat
This error is displayed because of invalid regular expression in the redirects table in the DB. Probably should display a more friendly message instead of an error trace.
jxy@jkxxx:~/kashifpk-DNS-NG-c326f83$ python DNS_NG.py Traceback (most recent call last): File "DNS_NG.py", line 122, in
factory = MyDNSServerFactory(clients=[resolver])
File "DNS_NG.py", line 24, in init
self.RM = RedirectManager()
File "/home/jay/kashifpk-DNS-NG-c326f83/redirect_manager.py", line 17, in init
self.load_redirects()
File "/home/jxy/kashifpk-DNS-NG-c326f83/redirect_manager.py", line 35, in load_redirects
'domain_re': re.compile(R.query_domain)
File "/usr/lib/python2.7/re.py", line 190, in compile
return _compile(pattern, flags)
File "/usr/lib/python2.7/re.py", line 244, in _compile
raise error, v # invalid expression
sre_constants.error: nothing to repeat