Set the Nikon D5100 from its default Matrix Metering to Spot Metering.
This will allow the camera to meter the centre 3.5mm of your viewfinder and correctly expose for this area whilst leaving the background over exposed with some blown out highlights.
Next, set the camera to RAW and click away (very important for post work). you can leave as jpeg if you are only interested in the subject and not the background.
If you wish to take the next step and bring some detail back into the background, then do the following;
Import the RAW images into the Nikon Imaging software supplied with your camera or lightroom, and in this software, bring the slider back for the Highlights and Black.
This will bring back some detail into the background which otherwise will be bright and blown out.
Increasing Shadows and whites will also increase dept. A slight increase in Clarity will also help.
When doing these tweaks, keep an eye on the histogram.