Fix: Zone Transfer. Need test

This commit is contained in:
Winston Smith 2021-06-02 15:29:55 +02:00
parent dc460f861a
commit f942299aeb
3 changed files with 4 additions and 3 deletions

View File

@ -151,7 +151,7 @@ Set-DnsServerResourceRecord -ZoneName asrc.local -NewInputObject $soanew -OldInp
#Set zone transfer
Set-DnsServerPrimaryZone -ComputerName SRV-01 -Name asrc.local -SecureSecondaries "TransferToSecureServers" -SecondaryServers "192.168.128.1"
Set-DnsServerPrimaryZone -ComputerName SRV-01 -Name asrc.local -SecureSecondaries "TransferToZoneNameServer" -SecondaryServers "192.168.128.1"
#Create reverse lookup Zone
Add-DnsServerPrimaryZone -NetworkID "192.168.0.0/16" -Zonefile "168.192.in-addr.arpa.dns"

View File

@ -80,7 +80,7 @@ Install-WindowsFeature -Name DNS -IncludeManagementTools -includeallsubfeature
Add-DnsServerPrimaryZone -ResponsiblePerson "bol@loc.ks" -DynamicUpdate None -ZoneFile asrc.dev.dns -Name asrc.dev
Set-DnsServerPrimaryZone -ComputerName SRV-03 -Name asrc.dev -SecureSecondaries "TransferToSecureServers"
Set-DnsServerPrimaryZone -ComputerName SRV-03 -Name asrc.dev -SecureSecondaries "NoTransfer"
$ns = Get-DnsServerResourceRecord -ZoneName asrc.dev -RRType NS
@ -103,7 +103,7 @@ Set-DnsServerResourceRecord -ZoneName asrc.dev -NewInputObject $soanew -OldInput
Add-DnsServerPrimaryZone -ResponsiblePerson "bol@loc.ks" -DynamicUpdate None -ZoneFile dev.asrc.local.dns -Name dev.asrc.local
Set-DnsServerPrimaryZone -ComputerName SRV-03 -Name dev.asrc.local -SecureSecondaries "TransferToSecureServers"
Set-DnsServerPrimaryZone -ComputerName SRV-03 -Name dev.asrc.local -SecureSecondaries "NoTransfer"
$ns = Get-DnsServerResourceRecord -ZoneName dev.asrc.local -RRType NS

View File

@ -1 +1,2 @@
SRV-01 reverse lookup
Add SRV-03 as NS in reverse lookup