The typical workaround (which I also always prefer to DNS rewrite) is to place your own DNS-resolvers in a DMZ and use these.
But first, tell us what exactly you want to achieve. as there are different solutions based on use-cases.
If you found this post helpful, please give it Kudos. If my answer solves your problem, please click Accept as Solution so others can benefit from it.