Update main.tf

This commit is contained in:
Chris Long
2020-04-09 02:30:38 -07:00
committed by GitHub
parent dbfa998ec2
commit ffffcf3cce

View File

@@ -207,7 +207,7 @@ resource "aws_instance" "dc" {
provisioner "remote-exec" {
inline = [
"choco install -force -y winpcap",
"powershell -c \"$ifindex = get-netipinterface | where-object InterfaceAlias -eq 'Ethernet' | where-object AddressFamily -eq 2 | select-object -ExpandProperty ifIndex; set-dnsclientserveraddress -InterfaceIndex $ifindex\"",
"powershell -c \"$ifindex = get-netipinterface | where-object InterfaceAlias -eq 'Ethernet' | where-object AddressFamily -eq 2 | select-object -ExpandProperty ifIndex; set-dnsclientserveraddress -InterfaceIndex $ifindex -ServerAddresses ('127.0.0.1','8.8.8.8')\"",
"ipconfig /all"
]