diff --git a/Guests/SRV-01.ps1 b/Guests/SRV-01.ps1 index bf557e9..5182482 100644 --- a/Guests/SRV-01.ps1 +++ b/Guests/SRV-01.ps1 @@ -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