From f743da78a64f2871d414ce53aeda722405312771 Mon Sep 17 00:00:00 2001 From: Alexandre-Simao Date: Tue, 1 Jun 2021 10:25:01 +0200 Subject: [PATCH] Chore: Add DNS test for SRV-01 --- Guests/SRV-01.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Guests/SRV-01.ps1 b/Guests/SRV-01.ps1 index d5f4831..adf0f83 100644 --- a/Guests/SRV-01.ps1 +++ b/Guests/SRV-01.ps1 @@ -112,14 +112,12 @@ route add -p 192.168.128.0/24 192.168.8.254 route add -p 0.0.0.0/0 192.168.8.254 # END - - echo "Adding DHCP server options" Set-DhcpServerv4OptionValue -ScopeId 192.168.128.0 -Router 192.168.128.254 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.8.1 -======= +Get-DhcpServerv4Scope | Set-DhcpServerv4OptionValue -DnsServer 192.168.128.1,192.168.8.1 + ### Installing and configuring DNS role @@ -135,7 +133,9 @@ Add-DnsServerResourceRecordA -Name "SRV-01" -ZoneName "microdown.local" -IPv4Add 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 -Test-DnsServer -IPAddress 192.168.8.1 -ZoneName "www.darty.fr" #Test +Test-DnsServer -IPAddress 192.168.8.1 -ZoneName "microdown.local" #Test +Test-DnsServer -IPAddress 192.168.128.1 -ZoneName "micro.bou.local" +Read-Host "DNS Tests" # Add local DNS for all Hosts