Tag: Microsoft Azure

  • Microsoft Azure Set rDNS

    To set rDNS for an IP, first make it static. Then use Azure CLI

    boby@hon-pc-01:~$ az network public-ip update --resource-group serverok --name ok-vmPublicIP --reverse-fqdn azure-rdns.serverok.in --dns-name  ok-vm
    {
      "dnsSettings": {
        "domainNameLabel": "ok-vm",
        "fqdn": "ok-vm.southeastasia.cloudapp.azure.com",
        "reverseFqdn": "azure-rdns.serverok.in"
      },
      "etag": "W/\"1046148c-e501-49e0-a673-942b75dd71ad\"",
      "id": "/subscriptions/7adb2f54-bc45-4d4d-a5ec-321ca213d39d/resourceGroups/serverok/providers/Microsoft.Network/publicIPAddresses/ok-vmPublicIP",
      "idleTimeoutInMinutes": 4,
      "ipAddress": "52.187.107.150",
      "ipConfiguration": {
        "etag": null,
        "id": "/subscriptions/7adb2f54-bc45-4d4d-a5ec-321ca213d39d/resourceGroups/serverok/providers/Microsoft.Network/networkInterfaces/ok-vmVMNic/ipConfigurations/ipconfigok-vm",
        "name": null,
        "privateIpAddress": null,
        "privateIpAllocationMethod": null,
        "provisioningState": null,
        "publicIpAddress": null,
        "resourceGroup": "serverok",
        "subnet": null
      },
      "ipTags": [],
      "location": "southeastasia",
      "name": "ok-vmPublicIP",
      "provisioningState": "Succeeded",
      "publicIpAddressVersion": "IPv4",
      "publicIpAllocationMethod": "Static",
      "resourceGroup": "serverok",
      "resourceGuid": "93193015-45df-4408-9c49-19148f9556e5",
      "sku": {
        "name": "Basic"
      },
      "tags": {},
      "type": "Microsoft.Network/publicIPAddresses",
      "zones": null
    }
    boby@hon-pc-01:~$ 
    

    –resource-group serverok

    Is the resource group name.

    –name ok-vmPublicIP

    ok-vmPublicIP is name of my public IP. You can see it in Azure console.

    –reverse-fqdn azure-rdns.serverok.in

    azure-rdns.serverok.in is the reverse DNS i need. I pointed A record for this domain to Azure IP address.

    –dns-name ok-vm

    ok-vm is name of my VM.