@JRE Thanks for reaching out.
One way to achieve this is to use Azure ExpressRoute or VPN Gateway to create a secure, private connection between your on-premises network and your Azure virtual network. Once the connection is established, you can configure your Azure function app to use the on-premises DNS server as the DNS resolver.
For more details on different Azure function networking option, you can refer to this document.