Commit 1c705fde authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Allow DNS wildcards

parent fd714bc7
......@@ -153,7 +153,7 @@ class DomainDict:
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)
if not name in[name] = set()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment