I think DF-17 is closer to 4M USD,.Bear in the mind the cost difference between the DF-17 and DF-27.
It looks like the DF-17 is about $2 Mn.
I'd expect the DF-27 to be much more expensive, given the significantly larger size and speed
And for comparison, we saw a previous CSBA estimate of a DF-26 class IRBM at around $20 Mn. But bear in mind that is likely an overestimate of what a Chinese DF-27 would cost.
---
Then consider that a Patriot SAM costs $4 million and they would typically launch 2 against an incoming missile. So you can see that in an arms race, where the defensive SAMs cost 4x more than a single DF-17, the DF-17 handily wins against the Patriot.
The higher cost of the DF-27 means there isn't as much of a cost advantage, if any.
DF-27's glider shouldn't be that different in size as DF-17 (It may even be the same glider), so the added cost is probably on the booster.