In times of Mahabharata, the surrounding area of Dakor constituted the 'Hidamba' van (jungle). It was a very dense jungle. It was pleasant and rich with streams and lakes. It had become an attraction for the sages to establish their hermitage for penance. Likewise, Dank Rishi had his hermitage (ashram) in this area. During penance Lord Shiva was pleased with him and asked him to demand something. Thereupon, Dank Rishi requested Lord Shiva to remain permanently in his hermitage. Lord Shiva agreed to his request. He disappeared and left behind him His replica in the form of Ban (Ling), which is known as Danknath Mahadev. Thus in ancient times, Dakor was known as 'Dankor' after the name of Dankanth Mahadev. It was also known as khakhariya because of many khakhra(palash) trees in the vicinity.