mirror of
https://github.com/Luzifer/dns.git
synced 2024-11-09 22:50:06 +00:00
Handle error in alias targets
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
5edadd507c
commit
1244d63733
1 changed files with 6 additions and 1 deletions
|
@ -55,7 +55,12 @@ def check_entry(zone_name, entry):
|
|||
warn('Zone "{}" - Entry "{}" - Unexpected key in entry found: {}'.format(
|
||||
zone_name, entry['name'], k))
|
||||
|
||||
parsed_entries = generator.sanitize(entry)
|
||||
try:
|
||||
parsed_entries = generator.sanitize(entry)
|
||||
except:
|
||||
error('Zone "{}" - Entry "{}" - Alias is not resolvable'.format(
|
||||
zone_name, entry['name']))
|
||||
return
|
||||
|
||||
if len(parsed_entries) == 0:
|
||||
warn('Zone "{}" - Entry "{}" - Resolved to 0 resource records!'.format(
|
||||
|
|
Loading…
Reference in a new issue