Correct weight param and return value in new_domain_record