Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
hostinfo
Commits
1c705fde
Commit
1c705fde
authored
Aug 22, 2017
by
Anders Blomdell
Browse files
Allow DNS wildcards
parent
fd714bc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hostinfo/named.py
View file @
1c705fde
...
...
@@ -153,7 +153,7 @@ class DomainDict:
pass
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
self
.
host
:
self
.
host
[
name
]
=
set
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment