Here is how you can control an adjustable voltage regulator from a DAC.
The control inputs of voltage regulators is usually 1.22 volts or so, and you can get 0 - 24 volts out for 5 - 0 V in with suitable choice of resistors.
The output goes up when the DAC output goes down so you have to reverse the signal in software.