How to Buy a Particular Car

I am targeting a new car which is in short supply in a particular color and trim. I see them appearing on the company website and then disappearing but not near me. How do I buy a car from a distant dealer or do I get a local dealer to find one for me?