Skip to content
Snippets Groups Projects
Commit 1c705fde authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Allow DNS wildcards

parent fd714bc7
No related branches found
No related tags found
No related merge requests found
...@@ -153,7 +153,7 @@ class DomainDict: ...@@ -153,7 +153,7 @@ class DomainDict:
pass pass
def add_host(self, name, ttl, kind, value): def add_host(self, name, ttl, kind, value):
if not re.match('^[0-9a-zA-Z.-]+$', name): if not re.match('^[*0-9a-zA-Z][-.0-9a-zA-Z]*$', name):
raise Exception('Invalid host name "%s"' % name) raise Exception('Invalid host name "%s"' % name)
if not name in self.host: if not name in self.host:
self.host[name] = set() self.host[name] = set()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment