[DM] Get the domain from the environment YAML