Any sortie where you are under instruction on a recognised syllabus is logged as dual. If you fly with another pilot on any other sortie, and you are qualified as a 1st pilot on that aircraft (Section 2 in your logbook), you can both claim it as 1st pilot but only one of you can claim as Captain.
Hope this answers your query.