Although I'm new to the Dmax platform as an owner, I've built many a gas motor and worked on a few diesels throughout the years. One thing i will say is when these motors are engineered, they are built to maintain reliably and over engineered in certain aspects for tolerances. Although diesel performance is a huge market, arguably because changing simple engineering aspects will yield more power, you do have to be mindful when doing upgrades. Whem you reduced those tolerances, it leaves room for failures.
Every generation Dmax has its silly quirks. You aren't dealing with anything major from the beginning like the Ford 6.0s had, but injectors and pumps are know to fail earlier than you would like them to. If you maintain proper basic maintenance and just run them hard, youll be fine.
I recommend trying to buy the best combo of newest vs mileage you can find. The LBZ platform had very limited production and are highly sought after. This is primarily because that was the last generation before highly regulation emission components became standard. Ever since, the various emissions components have become the Achilles heel for these motors. Its federally illegal to remove any of these components so that's not even an option anymore, nor does any member of this site condone or promote the same, and its not allowed to be spoken of.
If searching for one used, try your best to find one unmolested. Yes, these can be 700k trucks no problem, but when you purchase one at 250k, you dont know how it was treated in that first 250k. Once you start seeing charge pipes and dps5 switches etc, i would be learly to pull the trigger unless you get paperwork for EVERYTHING. Again, not to say the previous owner didn't do it properly, but thats now YOUR investment and you want to make sure your baby is taken care of, right?
There is a lot of knowledge around this place. Each generation motor has its own subsection in here so just poke around and feel out common issues. Take it with a grain of salt though because most posts are people looking for help with issues, that doesnt mean every guy has these issues all the time - but its can help give you basic knowledge of commonly seen issues.
If you dont know, just ask. However try to do some searching and digging before you ask the same "what size wheel and tire will fit my truck" that is posted 60x per day. Etc.
Good luck and keep us posted!