 Dillsburg is surrounded by Carroll Township in northwestern York County, Pennsylvania.According to the United States Census Bureau, the borough has a total area of , all of it land.The town is named for Matthew Dill, an immigrant from County Monaghan, Ireland, who settled the town in 1740.