Write Config file when create and destroy domains