13 lines
381 B
YAML
13 lines
381 B
YAML
|
address: '%%ip_eth0'
|
||
|
records:
|
||
|
%for %%domain in %%nsd_zones_all
|
||
|
%set %%suffix = %%normalize_family(%%domain)
|
||
|
%set %%hostnames = %%nsd["nsd_zone_" + %%suffix]["hostname_" + %%suffix]["hostname_" + %%suffix]
|
||
|
%for %%nsd in %%hostnames
|
||
|
%set %%type = %%nsd['type_' + %%suffix]
|
||
|
%if %%type == 'A'
|
||
|
%%{nsd}.%%domain: '%%nsd['ip_' + %%suffix]'
|
||
|
%end if
|
||
|
%end for
|
||
|
%end for
|