How to change DVD region country settings

Majority of DVDs have region specific encoding and can only be played in specific regions / countries in the world. For example: DVD disc intended to be played in USA cannot be played in India. There is a workaround for playing such DVDs by changing the region settings of your DVD drive.