Adding reverse DNS in Azure is fairly simple and is done via powershell. Make sure you have the following information before proceeding:
- The resource name of the public IP - in our example cpanelweb-1-ip
- The resouce group where the IP resides - in our example gotham-hosting
- Existing DNS for the hostname pointing to the IP - in our example cpanelweb-1.gothamweb.com
- Existing server name (without domain) - in our example cpanelweb-1
Login to powershell and execute:
$pip= Get-AzPublicIpAddress -Name "cpanelweb-1-ip"-ResourceGroupName "Gotham-Hosting"
$pip.DnsSettings = New-Object-TypeName"Microsoft.Azure.Commands.Network.Models.PSPublicIpAddressDnsSettings"
$pip.DnsSettings.DomainNameLabel = “cpanelweb-1"
$pip.DnsSettings.ReverseFqdn = "cpanelweb-1.gothamweb.com"
Set-AzPublicIpAddress-PublicIpAddress$pip
Additional info from https://docs.microsoft.com/en-us/azure/dns/dns-reverse-dns-for-azure-services#powershell