Fix: Zone Transfer + Reverse. Need test
This commit is contained in:
parent
f942299aeb
commit
b5ba42cfc7
@ -151,10 +151,11 @@ Set-DnsServerResourceRecord -ZoneName asrc.local -NewInputObject $soanew -OldInp
|
|||||||
|
|
||||||
#Set zone transfer
|
#Set zone transfer
|
||||||
|
|
||||||
Set-DnsServerPrimaryZone -ComputerName SRV-01 -Name asrc.local -SecureSecondaries "TransferToZoneNameServer" -SecondaryServers "192.168.128.1"
|
Set-DnsServerPrimaryZone -ComputerName SRV-01 -Name asrc.local -SecureSecondaries "TransferToZoneNameServer"
|
||||||
|
|
||||||
#Create reverse lookup Zone
|
#Create reverse lookup Zone
|
||||||
Add-DnsServerPrimaryZone -NetworkID "192.168.0.0/16" -Zonefile "168.192.in-addr.arpa.dns"
|
Add-DnsServerPrimaryZone -NetworkID "192.168.0.0/16" -Zonefile "168.192.in-addr.arpa.dns"
|
||||||
|
Set-DnsServerPrimaryZone -Name 168.192.in-addr.arpa -SecureSecondaries "TransferToZoneNameServer" ###TO BE FIXED
|
||||||
|
|
||||||
#Rename SOA+NS Reverse
|
#Rename SOA+NS Reverse
|
||||||
$ns = Get-DnsServerResourceRecord -ZoneName 168.192.in-addr.arpa -RRType NS
|
$ns = Get-DnsServerResourceRecord -ZoneName 168.192.in-addr.arpa -RRType NS
|
||||||
@ -187,8 +188,10 @@ Add-DnsServerResourceRecordA -Name "srv-01" -ZoneName "asrc.local" -IPv4Address
|
|||||||
Add-DnsServerResourceRecordA -Name "srv-02" -ZoneName "asrc.local" -IPv4Address "192.168.8.2" -TimeToLive 01:00:00 -CreatePTR
|
Add-DnsServerResourceRecordA -Name "srv-02" -ZoneName "asrc.local" -IPv4Address "192.168.8.2" -TimeToLive 01:00:00 -CreatePTR
|
||||||
Add-DnsServerResourceRecordA -Name "srv-03" -ZoneName "asrc.local" -IPv4Address "192.168.128.1" -TimeToLive 01:00:00 -CreatePTR
|
Add-DnsServerResourceRecordA -Name "srv-03" -ZoneName "asrc.local" -IPv4Address "192.168.128.1" -TimeToLive 01:00:00 -CreatePTR
|
||||||
Add-DnsServerResourceRecord -ZoneName "asrc.local" -NS -Name asrc.local -Nameserver "srv-03.asrc.local."
|
Add-DnsServerResourceRecord -ZoneName "asrc.local" -NS -Name asrc.local -Nameserver "srv-03.asrc.local."
|
||||||
|
Add-DnsServerResourceRecord -ZoneName "168.192.in-addr.arpa" -NS -Name 168.192.in-addr.arpa -Nameserver "srv-03.asrc.local." ## UNSURE
|
||||||
#Add-DnsServerResourceRecord -ZoneName "asrc.local" -A -Name dev.asrc.local -IPv4Address "192.168.128.1"
|
#Add-DnsServerResourceRecord -ZoneName "asrc.local" -A -Name dev.asrc.local -IPv4Address "192.168.128.1"
|
||||||
Add-DnsServerZoneTransferPolicy -Name "asrc.local" -Action IGNORE -ServerInterfaceIP "ne,192.168.128.1" -PassThru -ZoneName "asrc.local"
|
Add-DnsServerZoneTransferPolicy -Name "asrc.local" -Action IGNORE -ServerInterfaceIP "ne,192.168.128.1" -PassThru -ZoneName "asrc.local"
|
||||||
|
Add-DnsServerZoneTransferPolicy -Name "168.192.in-addr.arpa" -Action IGNORE -ServerInterfaceIP "ne,192.168.128.1" -PassThru -ZoneName "168.192.in-addr.arpa"
|
||||||
#Add-DnsServerZoneDelegation -Name "asrc.local" -ChildZoneName "dev" -NameServer "srv-03.asrc.local." -IPAddress 192.168.128.1 -PassThru -Verbose
|
#Add-DnsServerZoneDelegation -Name "asrc.local" -ChildZoneName "dev" -NameServer "srv-03.asrc.local." -IPAddress 192.168.128.1 -PassThru -Verbose
|
||||||
|
|
||||||
|
|
||||||
|
@ -105,6 +105,13 @@ Add-DnsServerPrimaryZone -ResponsiblePerson "bol@loc.ks" -DynamicUpdate None -Zo
|
|||||||
|
|
||||||
Set-DnsServerPrimaryZone -ComputerName SRV-03 -Name dev.asrc.local -SecureSecondaries "NoTransfer"
|
Set-DnsServerPrimaryZone -ComputerName SRV-03 -Name dev.asrc.local -SecureSecondaries "NoTransfer"
|
||||||
|
|
||||||
|
#Create reverse lookup Zone
|
||||||
|
|
||||||
|
Add-DnsServerPrimaryZone -NetworkID "192.168.0.0/16" -Zonefile "168.192.in-addr.arpa.dns"
|
||||||
|
Add-DnsServerSecondaryZone -NetworkID "192.168.0.0/16" -Zonefile "168.192.in-addr.arpa.dns" -MasterServers 192.168.8.1
|
||||||
|
|
||||||
|
#Rename SOA+NS Direct
|
||||||
|
|
||||||
$ns = Get-DnsServerResourceRecord -ZoneName dev.asrc.local -RRType NS
|
$ns = Get-DnsServerResourceRecord -ZoneName dev.asrc.local -RRType NS
|
||||||
|
|
||||||
$nsnew = $ns.Clone()
|
$nsnew = $ns.Clone()
|
||||||
|
Loading…
Reference in New Issue
Block a user