From c238b8e21f7e72853befaec556604fa7b09d1a0d Mon Sep 17 00:00:00 2001 From: Chris Long Date: Sat, 18 Apr 2020 15:38:05 -0700 Subject: [PATCH] Add hosts entry for WEF on the DC Fixes a DNS problem with Microsoft ATA --- Terraform/main.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Terraform/main.tf b/Terraform/main.tf index f92c26d..5fcf420 100644 --- a/Terraform/main.tf +++ b/Terraform/main.tf @@ -208,7 +208,8 @@ resource "aws_instance" "dc" { 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 -ServerAddresses ('127.0.0.1','8.8.8.8')\"", - "ipconfig /all" + "ipconfig /all", + "powershell.exe -c \"Add-Content 'c:\\windows\\system32\\drivers\\etc\\hosts' ' 192.168.38.103 wef.windomain.local'\"", ] connection {