How to create a DNS Proxy that proxies all domains with no domains list

I found this github repo that it proxies each domains existed in domains.lst.

But I’m looking for another way or script to proxy all domains.

For example, if I run “nslookup google.com 10.10.10.10”, it should return “10.10.10.10” IP and load google.com from this IP.

I also see this and this, but they’re not what I’m looking for.

Would you please help me?