Cisco IOS routers also have this feature. I am not aware of any similar native feature on the MX.
But: If you have an Umbrella subscription (which is anyhow good to have for added security) you can use the Umbrella connector to implement this feature. Internal domains are resolved through the configured DNS-server, all internet-DNS is sent to Umbrella.
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.