Skip to content

Instantly share code, notes, and snippets.

@shurick81
Last active May 7, 2020 16:02
Show Gist options
  • Save shurick81/9cf3fd77643316232033067f592e68dd to your computer and use it in GitHub Desktop.
Save shurick81/9cf3fd77643316232033067f592e68dd to your computer and use it in GitHub Desktop.
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