VPN Tunnels with DNS Resolve

What kind of RouterOS-based VPN tunnels allows for resolving the destination hostname as the tunnel gets established ?

F.

IPSec use hostname FQDN…
M.