71 Duster Headlight issues

Own a 71 Duster 340 car. After driving for about 20 minuets the headlights start to flicker. They go on and completely off. Park it let it cool and the lights work fine for another 20 min or so. Any suggestions