Add hosts entry for WEF on the DC

Fixes a DNS problem with Microsoft ATA
This commit is contained in:
Chris Long
2020-04-18 15:38:05 -07:00
committed by GitHub
parent e9804b4c69
commit c238b8e21f

View File

@@ -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 {