Creating a PTR record using PowerShell

As discussed earlier, before creating any record using PowerShell, you need to create the configuration of it first and store it within a variable by running the following cmdlet:

$RecordConfig = New-AzureRmDnsRecordConfig -Ptrdname "MachineY.Gamezakhana.com"

Then, you can create the record by running the following cmdlet:

New-AzureRmDnsRecordSet -Name 101 -RecordType PTR -ZoneName 77.12.200.in-addr.arpa -ResourceGroupName PacktPub -Ttl 3600 -DnsRecords $RecordConfig
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset