After commit a63f390d45d94cbef7cf310bcdaf362a958961f4 use_domain is broken. The value from alias_db_use_domain/use_domain is used in alias_flags_fixup which isn't called unless a flag i set.
alias_db_lookup("table") doesn't work alias_db_lookup("table", "r") does work. The same is true for db_alias_find()
I broke it and don't know how to fix it, sorry.