Wanted to set reverse dns to Azure app service , which configured as custom domain , not by virtual machine

Prashant Singh 1 Reputation point
2022-12-21T10:42:16.493+00:00

Wanted to set reverse dns to existing azure app service , as dns got blacklisted due to reason "RATS-NoPtr" ,

$pip = Get-AzPublicIpAddress -Name "PublicIp" -ResourceGroupName "MyResourceGroup"
$pip.DnsSettings.ReverseFqdn = "contosoapp1.westus.cloudapp.azure.com."
Set-AzPublicIpAddress -PublicIpAddress $pip

found this cmd , but don't have virtual machine for my app service, so no PublicIP, only custom domian,
If any suggest please let us know

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
778 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,974 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Arun Siripuram 911 Reputation points
    2022-12-22T05:11:11.507+00:00

    @Prashant Singh

    RATS-NoPtr signifies "Reverse Address Tuple Space - No Pointer record." It indicates that a reverse DNS (Domain Name System) lookup for an IP address has failed because there is no PTR (pointer) record associated with the IP address. RATS-NoPtr error in relation to an Azure app service may be because the reverse DNS for the app service's public IP address has not been configured correctly.

    Refer more information here
    https://learn.microsoft.com/en-us/azure/dns/dns-reverse-dns-for-azure-services

    If you don't have a virtual machine for your app service and you are using a custom domain, you can still set the reverse DNS for your app service by creating a CNAME record for your domain that points to your app service's hostname.

    Please follow the below steps to configure.

    1. Determine the hostname of your app service. You can find the hostname in the Azure portal by going to the Overview page for your app service and looking for the "URL" field. The hostname will be the portion of the URL that comes after the "https://" prefix.
    2. Go to the domain registrar where you registered your custom domain and log in to the domain management console.
    3. Look for a section or option that allows you to manage DNS records for your domain.
    4. Create a new CNAME record for your domain that points to the hostname of your app service. The CNAME record should have a name that matches your desired reverse DNS value (e.g. "contosoapp1"), and the value should be the hostname of your app service.
    5. Save the CNAME record and wait for it to propagate. It may take some time for the change to take effect, as DNS changes can take up to 72 hours to propagate.

    Once the CNAME record has propagated, the reverse DNS for your app service should be set to the desired value.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.