X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=m4%2Fnsc.m4;h=cf7a81dcca1514f0d7a7f2074eca802b49e65c84;hb=c6130206366c585cc37b19059838cb4092146fb5;hp=ad9ed2493a642867c1c380eaca6d93f5a2820906;hpb=974585a91012243da6f4bf2057bd24f66b6b9091;p=nsc-5.git diff --git a/m4/nsc.m4 b/m4/nsc.m4 index ad9ed24..cf7a81d 100644 --- a/m4/nsc.m4 +++ b/m4/nsc.m4 @@ -31,6 +31,7 @@ define(`VERSION',TODAY_CODE`'format(`%02d', SUBVER_NUM)) define(nsc_set_name, `define(`CURRENT_NAME', nsc_corr_dot($1))define(`PRINT_NAME', CURRENT_NAME)') define(nsc_emit_name, `ifdef(`PRINT_NAME', `PRINT_NAME`'undefine(`PRINT_NAME')', `')') define(nsc_abs_name, `ifelse(CURRENT_NAME, translit(CURRENT_NAME,.,:), CURRENT_NAME.CURRENT_DOMAIN, CURRENT_NAME)') +define(nsc_abs_name_nodot, `define(`nsc_tmp', nsc_abs_name)substr(nsc_tmp,0,decr(len(nsc_tmp)))') # SOA record @@ -144,6 +145,11 @@ define(CNAME, `$1 `CNAME' nsc_corr_dot($2)') define(PTR, `$1 `PTR' nsc_corr_dot($2)') +# DS records (DNSSEC keys for subdomains) + +define(DS, `ifdef(`REVERSE_MODE',,`nsc_DS')') +define(nsc_DS, `undivert(dss/nsc_abs_name_nodot)') + # Shortcut for classless reverse delegation of a block define(REVBLOCK, `nsc_forloop(`i', $2, $3, `i' `CNAME' `i'.$1