Carnock is a village located in Fife, Scotland, approximately 4 km northwest of Dunfermline and 1 mile east of Oakley, Fife. The village is said to be named for St. Cearnock, a disciple of St. Ninian. Alternatively the form may derive from Caer-cnoc, the meaning of "Caer" to be a fort or castle and "cnoc" which is known to mean an isolated hill. Carnock is known to have had military significance in antiquity.