I agree that the dealer is required to co-operate. But only if the gun was used in a crime and a warrant is presented.The distributor let them know which dealer it went to. The dealer gave them the info for the buyer (me). The dealer is required, by law, to give out the info for an investigation.
Voluntarily handing out customer information is a big no-no.