Last active
May 7, 2020 16:02
-
-
Save shurick81/9cf3fd77643316232033067f592e68dd to your computer and use it in GitHub Desktop.
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
Start-Transcript c:\Enable-DemoDNSFeature.log; | |
Install-WindowsFeature -Name DNS; | |
Set-NetFirewallRule -Name DNSSrv-DNS-TCP-In -Enabled True; | |
Set-NetFirewallRule -Name DNSSrv-DNS-UDP-In -Enabled True; | |
Add-DnsServerPrimaryZone -Name "west02.contoso.com" -ZoneFile "west02.contoso.com.dns" | |
Add-DnsServerResourceRecordA -ZoneName "west02.contoso.com" -Name test -IPv4Address 10.0.0.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment