Option to set domain closes #2923