add_record: convert rtype to uppercase