From 4dec4ff908b1ef926558bc05d2b686ab9e374b6f Mon Sep 17 00:00:00 2001 From: Alexandre-Simao Date: Wed, 2 Jun 2021 15:29:55 +0200 Subject: [PATCH] Fix: Zone Transfer. Need test --- Guests/SRV-01.ps1 | 2 +- Guests/SRV-03.ps1 | 4 ++-- Todo_Next | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Guests/SRV-01.ps1 b/Guests/SRV-01.ps1 index 5f0d655..7812f9e 100644 --- a/Guests/SRV-01.ps1 +++ b/Guests/SRV-01.ps1 @@ -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" diff --git a/Guests/SRV-03.ps1 b/Guests/SRV-03.ps1 index becba6b..73c971c 100644 --- a/Guests/SRV-03.ps1 +++ b/Guests/SRV-03.ps1 @@ -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 diff --git a/Todo_Next b/Todo_Next index 87353bc..4b3ffdd 100644 --- a/Todo_Next +++ b/Todo_Next @@ -1 +1,2 @@ SRV-01 reverse lookup +Add SRV-03 as NS in reverse lookup