Secondary dwelling and dual occupancy rules in Australia

Secondary dwelling and dual occupancy rules in Australia - how the four configurations differ, which approval pathway applies, and what to confirm first.