Terraform complex output from resource with dynamic blocks

Did you try something like this?

output x {
  value = { for v in yandex_mdb_mysql_cluster.main.host: v.zone => v.fqdn }
}