There should be different zoning and taxes for different types of homes. A primary residence only zone for example. There is a huge difference between primary residents and vacation/rental homes and their role in society.
In the same way "ride sharing" is a loophole to have a taxi company without the regulations, Airbnb found a loophole for running a hotel company without the regulations.
The homes rented out for days at a time should not count toward the housing supply and only be allowed on designated areas just like hotels.