Skip to content

Commit

Permalink
Clear DNS cache after setting DNS addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
Indigo744 committed Aug 27, 2019
1 parent 78d19b1 commit dd5a7da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wlanprofilemanager-ps.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ try {
} else {
Write-Host " > Set DNS $ipAdressDns/$ipAdressDnsAlt"
Set-DnsClientServerAddress -InterfaceIndex $currentItfIndex -ServerAddresses ($ipAdressDns,$ipAdressDnsAlt)
Write-Host " > Flush DNS"
Clear-DnsClientCache
Write-Host " > Done"

$has_changed = $true
Expand Down

0 comments on commit dd5a7da

Please sign in to comment.