Wipe any dirt and grease off the door frame using a cloth.
Scoop out wood putty using a narrow putty knife. Fill the nail holes and dents in the door frame with the putty. Spread on thin layers, one at a time, to fill deep dents and gouges.
Slightly mound the wood putty covering the holes and dents. Wipe off any excess putty using a cloth. Allow the putty to dry per the manufacturer's instructions.
Use a fine-grit sandpaper to sand the putty down flush with the rest of the door frame so the entire surface is even. Sand in the direction of the wood grain.
Stain the repaired spots on the door frame to match the rest of the frame, if necessary. Use a paintbrush or a clean cloth to apply the stain.