Castleknock is an affluent village in County Dublin, Ireland, located 8 km west of the centre of Dublin city. It is in the modern county of Fingal. In addition to the village, the name "Castleknock" also refers to older units of land division: a townland, a civil parish and a barony.