implemented get_domain_by_name()

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>