Fix: DNS + Comment

This commit is contained in:
Alexandre-Simao 2021-06-01 10:55:34 +02:00
parent bca1b8e4d7
commit 781e92ec5c
2 changed files with 12 additions and 11 deletions

View File

@ -2,7 +2,7 @@
# GPL v3
# SRV-01 ONLY
# Microdown.local domain
# bol.locks domain
# TODO: Delegation
@ -118,6 +118,7 @@ Set-DhcpServerv4OptionValue -ScopeId 192.168.12.0 -Router 192.168.12.254
Set-DhcpServerv4OptionValue -ScopeId 192.168.8.0 -Router 192.168.8.254
Get-DhcpServerv4Scope | Set-DhcpServerv4OptionValue -DnsServer 192.168.128.1,192.168.8.1
### Installing and configuring DNS role
@ -126,14 +127,14 @@ Get-DhcpServerv4Scope | Set-DhcpServerv4OptionValue -DnsServer 192.168.128.1,192
Install-WindowsFeature -Name DNS -IncludeManagementTools -includeallsubfeature
Add-DnsServerPrimaryZone -NetworkID 192.168.8.0/24 -ZoneFile 192.168.8.1.in-addr.arpa.dns # Zone secondaire
Add-DnsServerPrimaryZone -Name "microdown.local" -ZoneFile "microdown.local.dns"
Add-DnsServerPrimaryZone -Name "bol.locks" -ZoneFile "bol.locks.dns"
Add-DnsServerForwarder -IPAddress 9.9.9.9 -PassThru # Forward
Add-DnsServerResourceRecordA -Name "SRV-01" -ZoneName "microdown.local" -IPv4Address "192.168.8.1" -TimeToLive 01:00:00
Add-DnsServerResourceRecordA -Name "SRV-02" -ZoneName "microdown.local" -IPv4Address "192.168.8.2" -TimeToLive 01:00:00
Add-DnsServerResourceRecordA -Name "NAT" -ZoneName "microdown.local" -IPv4Address "192.168.255.254" -TimeToLive 01:00:00
Add-DnsServerResourceRecordA -Name "SRV-01" -ZoneName "bol.locks" -IPv4Address "192.168.8.1" -TimeToLive 01:00:00
Add-DnsServerResourceRecordA -Name "SRV-02" -ZoneName "bol.locks" -IPv4Address "192.168.8.2" -TimeToLive 01:00:00
Add-DnsServerResourceRecordA -Name "NAT" -ZoneName "bol.locks" -IPv4Address "192.168.255.254" -TimeToLive 01:00:00
Test-DnsServer -IPAddress 192.168.8.1 -ZoneName "microdown.local" #Test
Test-DnsServer -IPAddress 192.168.8.1 -ZoneName "bol.locks" #Test
Test-DnsServer -IPAddress 192.168.128.1 -ZoneName "micro.bou.local"
Read-Host "DNS Tests"

View File

@ -90,7 +90,7 @@ Restart-Computer
# GPL v3
# SRV-01 ONLY
# Microdown.local domain
# bol.locks domain
# TODO:
@ -162,12 +162,12 @@ route add -p 0.0.0.0/0 192.168.128.254
#Install-WindowsFeature -Name DNS -IncludeManagementTools -includeallsubfeature#
#Add-DnsServerPrimaryZone -NetworkID 192.168.8.0/24 -ZoneFile “192.168.8.1.in-addr.arpa.dns” # Zone secondaire
#Add-DnsServerPrimaryZone -Name "microdown.local" -ZoneFile "microdown.local.dns"
#Add-DnsServerPrimaryZone -Name "bol.locks" -ZoneFile "bol.locks.dns"
#Add-DnsServerForwarder -IPAddress 9.9.9.9 -PassThru # Forward
#Add-DnsServerResourceRecordA -Name "SRV-01" -ZoneName "microdown.local" -IPv4Address "192.168.8.1" -TimeToLive 01:00:00
#Add-DnsServerResourceRecordA -Name "SRV-02" -ZoneName "microdown.local" -IPv4Address "192.168.8.2" -TimeToLive 01:00:00
#Add-DnsServerResourceRecordA -Name "NAT" -ZoneName "microdown.local" -IPv4Address "192.168.255.254" -TimeToLive 01:00:00
#Add-DnsServerResourceRecordA -Name "SRV-01" -ZoneName "bol.locks" -IPv4Address "192.168.8.1" -TimeToLive 01:00:00
#Add-DnsServerResourceRecordA -Name "SRV-02" -ZoneName "bol.locks" -IPv4Address "192.168.8.2" -TimeToLive 01:00:00
#Add-DnsServerResourceRecordA -Name "NAT" -ZoneName "bol.locks" -IPv4Address "192.168.255.254" -TimeToLive 01:00:00
#Test-DnsServer -IPAddress 192.168.8.1 -ZoneName "www.darty.fr" #Test