Skip to content

Instantly share code, notes, and snippets.

@supermarsx
Created July 18, 2020 18:41
Show Gist options
  • Save supermarsx/d8ce5e5400df1136f7ae7784c5d7f0af to your computer and use it in GitHub Desktop.
Save supermarsx/d8ce5e5400df1136f7ae7784c5d7f0af to your computer and use it in GitHub Desktop.
Exchange 2013 Shell, Set DNS lookup addresses
$SERVERNAME = "SERVERNAME"
$LOCALIP1 = "LOCALIP1"
$LOCALIP2 = "LOCALIP2"
Set-TransportService $SERVERNAME -ExternalDnsServer $LOCALIP1, $LOCALIP2
Set-TransportService $SERVERNAME -InternalDnsServer $LOCALIP1, $LOCALIP2
Set-FrontEndTransportService SERVERNAME -ExternalDnsServer $LOCALIP1, $LOCALIP2
Set-FrontEndTransportService SERVERNAME -InternalDnsServer $LOCALIP1, $LOCALIP2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment