Some airlines have international flights between domestic airports that use international terminals at each end - mostly as tag flight at start or end of true international flight, but some purely run as domestic connections. Treatment at immigration and customs then depends on whether or not pax is international or domestic.
Examples include QF, NZ.