So you will make a custom template of a file that I could possibly modify one day…keep it in mind. I have chosen a file that even if I modify it, you should have not much troubles
mkdir /etc/e-smith/templates-custom/etc/fail2ban/jail.local -p
cp /etc/e-smith/templates/etc/fail2ban/jail.local/01localaccess /etc/e-smith/templates-custom/etc/fail2ban/jail.local
and replace
$localAccess .= join ' ',
map { s:/255.255.255.255::; $_ }
@localAccess, @ip;
by
my @DynDns = ('titi.it','tutu.tu');
$localAccess .= join ' ',
map { s:/255.255.255.255::; $_ }
@localAccess, @ip, @DynDns;
you can put how many dyndns you want, only respect the way the array is written