I'd suggest iterating all available domains for it's web_host atribute and reutrn the proper domain object based on the parents mail_host
I'd suggest iterating all available domains for it's web_host atribute and reutrn the proper domain object based on the parents mail_host