Head lights go out intermittently on 2001 Infiniti QX4

The driver side headlight goes out sometimes usually when the turn signal is on and I turn the steering wheel. Most recently both headlights are now beginning to go out. If I turn the headlight switch on and off on the steering column they come back on.
Any ideqas?

Asked by for the 2001 Infiniti QX4
Sounds like a bad headlight switch.
Thanks very much. I had been thinking the wiring harness, but it is probably best to start with the switch.