Hornsby is a suburb and shire located in the northern part of Sydney . Hornsby is a suburb on the Upper North Shore of Sydney , in the state of New South Wales , Australia . Hornsby is located 25 kilometres north-west of the Sydney central business district and is the administrative center of the local government area of Hornsby Shire .