What was the capital of Australia until Canberra was established?

Melbourne housed the Federal government and public service from federation and was therefore the temporary seat of power in Australia, but never the capital. However the two largest cities, Sydney and Melbourne, had been rivals since the goldrush days. Sydney, as the founding settlement, always held a place of prominence, but once Melbourne was established as the main settlement in the new colony of Victoria, and fed by the wealth of the goldrushes, constant rivalry was a problem. It was therefore decided that the nation's capital should be situated between the two cities. A location was chosen which was 248km from Sydney and 483km from Melbourne, and outside naval gunfire range from the coast. From this sparsely-settled area grew the capital city of Australia, Canberra. From the opening of the temporary Parliament House in 1927, the government and its agencies were progressively moved to Canberra, though this was not finally completed until the 1960s.