Skip to content

Commit

Permalink
check: error on domains with underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Mar 31, 2018
1 parent f21dd33 commit 898eb44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions check
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ def check_rdns(data):

if 'domains' in data:
for domain in data['domains']:
if '_' in domain:
errcnt += 1
error("Domain %s has illegal characters" % domain)
if domain.endswith('.ip6.arpa') or domain.endswith('.in-addr.arpa'):
found = False
for reverse_domain in allowed_domains:
Expand Down

0 comments on commit 898eb44

Please sign in to comment.