DMF for drilling fluids