Correct weight param and return value in new_domain_record

This method is broken. It succeeds in creating a record, but doesn't return the created record properly to calling code. Weight was also incorrectly assigned to port.