Need Assistance with PTR Record Configuration

Huang WeiYe 20 Reputation points
2024-10-05T11:11:49.16+00:00

Hello,

I am currently configuring a mail server on an Azure VM running Linux, and I have encountered some issues related to setting up PTR records.

  1. I have successfully created an A record for mail.i-smart.me, which points to the VM's public IP, and it can be resolved correctly.
  2. I attempted to set the reverse FQDN using the following command:
    
       az network public-ip update --resource-group xxxxxxxx-group-1 --name xxxxxxxxx-ip --reverse-fqdn mail.i-smart.me
    
    
    However, I received the following error message:
    
       (ReverseFqdnDoesNotBelongToSubscription) ReverseFqdn mail.i-smart.me. that PublicIPAddress xxxxxxxxxx is trying to use does not belong to subscription xxxxxxxxxxxxxxxxxx. One of the following conditions need to be met to establish ownership: 
    
       1) ReverseFqdn matches fqdn of any public ip resource under the subscription; 
    
       2) ReverseFqdn resolves to the fqdn (through CName records chain) of any public ip resource under the subscription; 
    
       3) It resolves to the ip address (through CName and A records chain) of a static public ip resource under the subscription.
    
    
  3. I then tried to update the reverse FQDN using this command:
    
       az network public-ip update --resource-group xxxxxxxx-group-1 --name xxxxxxxxx-ip --reverse-fqdn mailforismart.eastus2.cloudapp.azure.com --dns-name mailforismart
    
    
    However, I found that I could not add a CNAME record for mail.i-smart.me pointing to mailforismart.eastus2.cloudapp.azure.com because an A record for mail.i-smart.me already exists.

My question is: what steps can I take to resolve this situation? I need to establish the PTR record for my mail server properly.

Any help or guidance would be greatly appreciated!

Thank you!

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
{count} votes

Answer accepted by question author
  1. KapilAnanth 49,856 Reputation points Moderator
    2024-10-07T08:46:33.6866667+00:00

    @Huang WeiYe ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    From the Validation requirements, I see

    • A vanity DNS name, such as: app1.contoso.com. As long as this name is first configured as an A record pointing to the IP address 23.96.52.53
    • Similarly, as long as your custom domain (mail.i-smart.me) is pointing to the Azure VM's Public IP (not the DNS Name), you should be able to add this as a reverse FQDN.

    So, technically, you do not have to both CNAME and A record for the DNS "mail.i-smart.me" to point to the VM's DNS and Public IP respectively.

    Can you please share the output of the below command?

    • Azure CLI : az network public-ip show -g <RGName> -n <IPName> --query "{fqdn: dnsSettings.fqdn}"
    • Is it null or "mailforismart.eastus2.cloudapp.azure.com" or some other value?

    P.S: I believe you are running the commands in the same subscription as the Public IP resides, please confirm once.

    Cheers,

    Kapil


0 additional answers

Sort by: Most helpful

Your answer

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