Windows
On Windows, DNS host names can be forced into c:\windows\system32\drivers\etc\hosts
Assuming you want to map:
one.address.com <= 10.0.0.2
two.address.com <= 192.168.0.1 # Some comment
The following startup script accomplishes this:
echo 10.0.0.2 one.address.com > c:\windows\system32\drivers\etc\hosts echo 192.168.0.1 two.address.com #Some comment >> c:\windows\system32\drivers\etc\hosts
Translated to a PowerTag script:
!STARTUP_GLOBAL_BAT=echo 10.0.0.2 one.address.com > c:\windows\system32\drivers\etc\hosts^|echo 192.168.0.1 two.address.com #Some comment >> c:\windows\system32\drivers\etc\hosts