Set system_domain, with domain as the fallback

[#49221357]