mirror of
https://github.com/Luzifer/dns.git
synced 2024-11-10 07:00:10 +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(
|
warn('Zone "{}" - Entry "{}" - Unexpected key in entry found: {}'.format(
|
||||||
zone_name, entry['name'], k))
|
zone_name, entry['name'], k))
|
||||||
|
|
||||||
|
try:
|
||||||
parsed_entries = generator.sanitize(entry)
|
parsed_entries = generator.sanitize(entry)
|
||||||
|
except:
|
||||||
|
error('Zone "{}" - Entry "{}" - Alias is not resolvable'.format(
|
||||||
|
zone_name, entry['name']))
|
||||||
|
return
|
||||||
|
|
||||||
if len(parsed_entries) == 0:
|
if len(parsed_entries) == 0:
|
||||||
warn('Zone "{}" - Entry "{}" - Resolved to 0 resource records!'.format(
|
warn('Zone "{}" - Entry "{}" - Resolved to 0 resource records!'.format(
|
||||||
|
|
Loading…
Reference in a new issue