Hello @Deepankar Pal ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that you would like to know the best way to redirect a URL to another using Azure private DNS.
Azure DNS doesn't support URL redirects. URL redirect services aren't a DNS service. They work at the HTTP level rather than the DNS level. Some DNS providers bundle a URL redirect service as part of their overall offering. This service isn't currently supported by Azure DNS (including Private DNS).
The URL redirect feature is tracked in the Azure DNS backlog. Use the feedback site to register your support for this feature.
Refer: https://learn.microsoft.com/en-us/azure/dns/dns-faq#does-azure-dns-support-url-redirects-
So, you would need to use another service such as a load balancer, application gateway or front door in front of your VM and use a custom domain via CNAME record to access your application.
Refer: https://learn.microsoft.com/en-us/azure/dns/dns-for-azure-services
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.