Cleans up Domain Server block and sets a method for retrieving domain fields.