User Tools

Site Tools


windows:powershell_commands:dns

Add 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: 2017/08/10 11:00 (external edit)