Fix: DNS + Comment
This commit is contained in:
parent
bca1b8e4d7
commit
781e92ec5c
@ -2,7 +2,7 @@
|
|||||||
# GPL v3
|
# GPL v3
|
||||||
|
|
||||||
# SRV-01 ONLY
|
# SRV-01 ONLY
|
||||||
# Microdown.local domain
|
# bol.locks domain
|
||||||
|
|
||||||
# TODO: Delegation
|
# 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
|
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
|
Get-DhcpServerv4Scope | Set-DhcpServerv4OptionValue -DnsServer 192.168.128.1,192.168.8.1
|
||||||
|
|
||||||
|
|
||||||
### Installing and configuring DNS role
|
### 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
|
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 -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-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-01" -ZoneName "bol.locks" -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 "SRV-02" -ZoneName "bol.locks" -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 "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"
|
Test-DnsServer -IPAddress 192.168.128.1 -ZoneName "micro.bou.local"
|
||||||
Read-Host "DNS Tests"
|
Read-Host "DNS Tests"
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ Restart-Computer
|
|||||||
# GPL v3
|
# GPL v3
|
||||||
|
|
||||||
# SRV-01 ONLY
|
# SRV-01 ONLY
|
||||||
# Microdown.local domain
|
# bol.locks domain
|
||||||
|
|
||||||
# TODO:
|
# TODO:
|
||||||
|
|
||||||
@ -162,12 +162,12 @@ route add -p 0.0.0.0/0 192.168.128.254
|
|||||||
#Install-WindowsFeature -Name DNS -IncludeManagementTools -includeallsubfeature#
|
#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 -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-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-01" -ZoneName "bol.locks" -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 "SRV-02" -ZoneName "bol.locks" -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 "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
|
#Test-DnsServer -IPAddress 192.168.8.1 -ZoneName "www.darty.fr" #Test
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user