Save domain settings. [needs work]