Add domain option to template