How to trigger triac using DC?
It's not clear what you are really asking, but possibly what you want is a solid state relay.  Some of those are optically-triggered triacs.  You drive the internal LED, and it turns on the triac.