From 87bd41e4efc0e5469460c6dad91ef73e48de2796 Mon Sep 17 00:00:00 2001 From: Alexandre S Date: Mon, 10 May 2021 17:16:04 +0200 Subject: [PATCH] chore: change scoped DNS option to global --- Guests/RTR-02.ps1 | 4 ++-- Guests/SRV-01.ps1 | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Guests/RTR-02.ps1 b/Guests/RTR-02.ps1 index 28391ef..fd48d0c 100644 --- a/Guests/RTR-02.ps1 +++ b/Guests/RTR-02.ps1 @@ -36,9 +36,9 @@ $IPType = "IPv4" netsh interface ip set address name="Bou-LAN" static 192.168.128.254 255.255.255.0 - #WAN +#WAN - netsh interface ip set address name="WAN" static 192.168.255.128 255.255.255.0 192.168.255.254 +netsh interface ip set address name="WAN" static 192.168.255.128 255.255.255.0 192.168.255.254 # END diff --git a/Guests/SRV-01.ps1 b/Guests/SRV-01.ps1 index 5b477fa..590f06d 100644 --- a/Guests/SRV-01.ps1 +++ b/Guests/SRV-01.ps1 @@ -116,11 +116,11 @@ route add -p 0.0.0.0/0 192.168.8.254 echo "Adding DHCP server options" Set-DhcpServerv4OptionValue -ScopeId 192.168.128.0 -Router 192.168.128.254 -Set-DhcpServerv4OptionValue -ScopeId 192.168.128.0 -DnsServer 9.9.9.9 Set-DhcpServerv4OptionValue -ScopeId 192.168.12.0 -Router 192.168.12.254 -Set-DhcpServerv4OptionValue -ScopeId 192.168.12.0 -DnsServer 9.9.9.9 Set-DhcpServerv4OptionValue -ScopeId 192.168.8.0 -Router 192.168.8.254 -Set-DhcpServerv4OptionValue -ScopeId 192.168.8.0 -DnsServer 9.9.9.9 +#Set-DhcpServerv4OptionValue -ScopeId 192.168.8.0 -DnsServer 9.9.9.9 + +Get-DhcpServerv4Scope | Set-DhcpServerv4OptionValue -DnsServer 9.9.9.9 Read-Host "Finished?" Restart-Computer