We have code which assumes $rc->{search} is a single domain, for example in PVE::Cluster (search for 'fqdn'). Not sure if there are other locations where we use the same assumption? You need to fix that first.