If the IP is Azure owned, and you are using a Public IP or Cloud Services(Classic Deployment Model),
You should follow this: Reverse DNS for Public IP address resources.
Prerequisite:
- The Public IP must have a FQDN, or in other words, a DomainNameLabel
- Under your Public IP address, go to Configuration Tab
- Under DNS name label, enter the prefix you want to use.
- Select Save at the top of the page.
- Select Overview in the left menu to return to the overview blade.
- Verify that the DNS name appears correctly.
- Add a DNS CName Record in your domain to point to this Label.
or
Add a A Record in your domain to point to this IP Address -
Steps to follow:
Once the A record or CNAME record is configured & replicated, you can go ahead and set Reverse DNS as follows:
$pip = Get-AzPublicIpAddress -Name "<Name of PIP>" -ResourceGroupName "<RG Name>"
$pip.DnsSettings.ReverseFqdn = "<Your custom domain>"
Set-AzPublicIpAddress -PublicIpAddress $pip
Post this, wait for around 15-30 minutes so that the DNS gets propagated.
Kindly let us know if this helps or you need further assistance on this issue.
Thanks,
Kapil