return null if domain name or msgid is null