That is a form of MiTM. It’s just changing DNS to IP bindings rather than IP to MAC or prefix to ISP.