Implements updating a zone record, plus minor cleanup.