chore: add A Rec for SRV-01/02/NAT microdown.local
This commit is contained in:
parent
532691cecb
commit
110aa24668
@ -124,14 +124,19 @@ Get-DhcpServerv4Scope | Set-DhcpServerv4OptionValue -DnsServer 192.168.8.1
|
||||
|
||||
### Installing and configuring DNS role
|
||||
|
||||
Install-WindowsFeature -Name DNS -IncludeManagementTools -includeallsubfeature
|
||||
#TWILIGHT ZONE
|
||||
|
||||
Add-DnsServerSecondaryZone -Name "bollocks.microdows.local" -ZoneFile "bollocks.dns" -MasterServers "192.168.8.1"
|
||||
Add-DnsServerSecondaryZone -MasterServers "192.168.8.1" -Name "bollocks.microdows.local" -ZoneFile "bollocks.dns"
|
||||
# Install and configure DNS server
|
||||
|
||||
Install-WindowsFeature -Name DNS -IncludeManagementTools -includeallsubfeature
|
||||
|
||||
Add-DnsServerSecondaryZone -MasterServers "9.9.9.9" -Name "microdown.local" -ZoneFile "microdown.dns"
|
||||
Add-DnsServerPrimaryZone -NetworkID 192.168.8.0/24 -ZoneFile “192.168.8.1.in-addr.arpa.dns” # Zone secondaire
|
||||
Add-DnsServerForwarder -IPAddress 192.168.8.1 -PassThru # Forward
|
||||
Test-DnsServer -IPAddress 192.168.8.1 -ZoneName "www.darty.fr" #Test
|
||||
|
||||
Add-DnsServerResourceRecordA -Name "SRV-01" -ZoneName "microdown.local" -AllowUpdateAny -IPv4Address "192.168.8.1" -TimeToLive 01:00:00
|
||||
Add-DnsServerResourceRecordA -Name "SRV-02" -ZoneName "microdown.local" -AllowUpdateAny -IPv4Address "192.168.8.2" -TimeToLive 01:00:00
|
||||
Add-DnsServerResourceRecordA -Name "NAT" -ZoneName "microdown.local" -AllowUpdateAny -IPv4Address "192.168.255.254" -TimeToLive 01:00:00
|
||||
|
||||
Read-Host "Finished?"
|
||||
Restart-Computer
|
||||
|
Loading…
Reference in New Issue
Block a user