Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
Can you please elaborate on what you mean by "How do you set the DNS configuration of the VPN Tunnel?".
To answer your questions,
- We would like to connect the client to the server in Azure after promoting the Server in Azure to a domain controller. Is this possible?
- Yes
- The Azure VM being a DC has no effect on the plain network connectivity
- You should be able to ping and TcpPing the VM from P2S clients nevertheless.
- How do you set the DNS configuration of the VPN Tunnel?
- I assume that you would like the Remote P2S Clients to use this VM(DC) as DNS servers
- I believe the above is your requirement, if not, please do let me know
- Now, you can make requests to certain domain go to a VM in Azure - This is doable.
- For this, you have to edit the configuration files
- Add DNS Suffix - If your domain is contoso.com, you must add <dnssuffix>.constoso.net</dnssuffix>
- Add Custom DNS Servers - You must add the DC server IP <dnsserver>x.x.x.x</dnsserver> which will resolve your DNS queries.
- The above are only supported for OpenVPN protocol connections.
- I see you have mentioned to have use Basic SKU
- So please upgrade to a SKU that supports OpenVPN
Kindly let us know if this helps or you need further assistance on this issue.
Thanks,
Kapil