chore: change scoped DNS option to global

This commit is contained in:
Winston Smith 2021-05-10 17:16:04 +02:00
parent 5343405016
commit ea2d512876
2 changed files with 5 additions and 5 deletions

View File

@ -116,11 +116,11 @@ route add -p 0.0.0.0/0 192.168.8.254
echo "Adding DHCP server options" echo "Adding DHCP server options"
Set-DhcpServerv4OptionValue -ScopeId 192.168.128.0 -Router 192.168.128.254 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 -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 -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?" Read-Host "Finished?"
Restart-Computer Restart-Computer