Using Console
Using CLI
az login
.
<zone_name>
with the name of the DNS zone containing the subdomain and <resource_group_name>
with the name of the resource group where the DNS zone is located.
<record_set_name>
with the name of the record set containing the NS records, <zone_name>
with the name of the DNS zone, <resource_group_name>
with the resource group name, and <new_ns_records>
with the correct NS records.
Note: Ensure that you remove the vulnerable NS records and add the correct ones in the --remove
and --add
parameters, respectively.
Using Python
subscription_id
with your Azure subscription ID in the authentication step.Note: This script assumes that you have already authenticated with Azure and have the necessary permissions to modify DNS records.