How to redirect all dns to a local proxy?

I would like to redirect all traffic that goes through a DNS server to a local Proxy or on the same machine... example: 10.0.0.10 (DNS) > > > local Proxy > > > Internet

EX: for example, machine with ip 10.0.0.11 > set the dns (10.0.0.10) and all dns traffic go through a proxy of the same machine as the dns is installed, and machine 10.0.0.11 access the proxy server by machine dns 10.0.0.10

I have CentOS System 7

Author: YODA, 2018-07-10