windows:powershell_commands:dns

Create DNS records with PowerShell

Add cName record:

add-dnsserverresourcerecordcname -ComputerName "ad01" -ZoneName "example.com" -Name "test-cname" -HostNameAlias "ftp.example.com." -CreatePtr

Add A record:

 Add-DnsServerResourceRecordA -ComputerName "ad01" -ZoneName "example.com" -Name "test-ipv4" -IPv4Address "10.0.0.10" -CreatePtr

Add AAAA record:

Add-DnsServerResourceRecordAAAA -ComputerName "ad01" -ZoneName "example.com" -Name "test-ipv6" -IPv6Address "ff::ff"
  • windows/powershell_commands/dns.txt
  • Last modified: 2019/10/31 09:06
  • by 127.0.0.1