All inbound passengers and crew go through immigration and customs, proceed to the domestic terminal prior boarding a flight with domestic passengers who do not go through immigration. I.e. The sectors from Darwin o melbourne/cairns etc are totally domestic they arrive at domestic terminals