You don't say what year or if it is in an RV or a Chevy/GM truck but having owned two Duramax trucks from 2004 to 2019 I can tell you that several things cause a crank but no start. One of the first issues is air in the fuel line. The Duramax does not have a fuel pump and the fuel system sucks fuel from tank from engine location. Any leak, anywhere will cause a no start but the major culprit is usually the fuel filter head. O-rings go bad and suck air at that location. The engine will not start. Pumping the fuel pump at the filter head, with the bleeder screw open, until you get fuel out of the screw will prime the pump but the next time you turn it off is will lose prime.
A pump rebuild will usually fix that problem and the very best solution is a "lift pump" installed near the fuel tank. The lift pump (and I recommend taking a look at Kennedy Diesel for the pump, will overcome most all air in the fuel line problem and will show you where the problem is because fuel will be leaking at the trouble point.
This is a good Web site to research your Duramax issues you just need to know which of the many engines you have and go to that Forum.
https://www.dieselplace.com/forums/
Now, to mention another issue. Depending upon the age of the engine, injectors can cause problems, and when they do it is not pretty. There is a simple but not totally accurate way to check injectors and rather than make a long list here I suggest going to the DieselPlace and doing some research.