在AZURE DNS下更改SOA序列 [英] Changing SOA Serial under AZURE DNS
问题描述
我将DNS托管在Azure下.我正在慢慢过渡到Azure. 当我检查我的Azure SOA时,我得到了44个序列号. 该如何更改?
I host my DNS under Azure. I'm making a transition to Azure slowly. When I check my azure SOA I get a serial of 44. How do I change this?
我尝试过:
PS C:\ WINDOWS \ system32> $ rs = get-azurermdnsrecordset -name"@"; -recordtype SOA-区域$ zone
PS C:\ WINDOWS \ system32> $ rs.records [0] .SerialNumber ="2015122300"
PS C:\ WINDOWS \ system32> set-azurermdnsrecordset -recordset $ rs
PS C:\WINDOWS\system32> $rs = get-azurermdnsrecordset -name "@" -recordtype SOA -Zone $zone
PS C:\WINDOWS\system32> $rs.records[0].SerialNumber = "2015122300"
PS C:\WINDOWS\system32> set-azurermdnsrecordset -recordset $rs
这不会更改序列.
我似乎无法说服azure CLI在任何地方都可以工作 我一直在登录时遇到无限循环.
I can't seem to convince azure CLI to work anywhere I keep getting infinite loop on login.
推荐答案
请注意,y 以下示例显示了如何更改SOA记录的电子邮件"属性:
The following example shows how to change the ‘Email’ property of the SOA record:
PS C:\>
rs = 获取 AzureRmDnsRecordSet 名称 " @" - SOA 区域
rs = Get-AzureRmDnsRecordSet -Name "@" -RecordType SOA -Zone
区 PS C : \>
zone PS C:\>
这篇关于在AZURE DNS下更改SOA序列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!