Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
Handle multiple DNS servers
Browse files Browse the repository at this point in the history
[#151571316]

Signed-off-by: Genevieve LEsperance <glesperance@pivotal.io>
  • Loading branch information
mcwumbly authored and Genevieve LEsperance committed Oct 4, 2017
1 parent 0005515 commit b76cc36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobs/consul_agent_windows/templates/pre-start.ps1.erb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if($servers[0] -eq "127.0.0.1")
else
{
Write-Host "Setting DNS Servers"
$newDNS = "127.0.0.1", $servers
$newDNS = ,"127.0.0.1" + $servers
Write-Host $newDNS
Set-DnsClientServerAddress -InterfaceAlias $interface -ServerAddresses $newDNS
$servers = DnsServers($interface)
Expand Down

0 comments on commit b76cc36

Please sign in to comment.