[dnsrr] fix template generation