Upvote:1
Yes this is fine.
With a D-Visa (as apposed to a C-Visa) you are allowed to remain in the Schengen country that issued it (France) during the whole period the visa is valid for.
During this period, you are also allowed to visit other Schengen countries, based on the 90/180 days rule for the days outside the issuing country (France).
In reality, only when some authority has good reasons to believe that you have overstayed (4 months in same hotel in Amsterdam), will anything be undertaken.
In such a case the burden of proof then lies with you.