Created
January 4, 2013 03:48
-
-
Save jstangroome/4449741 to your computer and use it in GitHub Desktop.
How to use Set-DnsServerResourceRecord in the Windows Server 2012 DnsServer PowerShell module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Record = Get-DnsServerResourceRecord -ZoneName mydomain.local -Name mail -RRType CName | |
$NewRecord = $Record.Clone() | |
$NewRecord.RecordData.HostNameAlias = 'smtp.mydomain.com' | |
Set-DnsServerResourceRecord -ZoneName mydomain.local -OldInputObject $Record -NewInputObject $NewRecord |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment