Fix: SRV-03 SOA rename

This commit is contained in:
Alexandre-Simao 2021-06-01 17:09:49 +02:00
parent 78f737b014
commit b750542223

View File

@ -97,7 +97,7 @@ $soanew = $soa.Clone()
$soanew.RecordData.PrimaryServer = "srv-03.asrbd.dev" $soanew.RecordData.PrimaryServer = "srv-03.asrbd.dev"
$soanew.RecordData.ExpireLimit = (New-TimeSpan -Days 4) $soanew.RecordData.ExpireLimit = (New-TimeSpan -Days 4)
Set-DnsServerResourceRecord -ZoneName as -NewInputObject $soanew -OldInputObject $soa Set-DnsServerResourceRecord -ZoneName asrbd.dev -NewInputObject $soanew -OldInputObject $soa
Set-DnsServerPrimaryZone -ComputerName SRV-01 -Name asrbd.dev -SecureSecondaries "TransferToSecureServers" -SecondaryServers "192.168.128.1" Set-DnsServerPrimaryZone -ComputerName SRV-01 -Name asrbd.dev -SecureSecondaries "TransferToSecureServers" -SecondaryServers "192.168.128.1"