Welcome › Forums › General PowerShell Q&A › Add cname to dns subdomain
How can I add a bulk list of cname records to the subdmain in dns for example if I have a forward lookup zone of “company .com” then under that I have another zone of “myservers”. How do I add cnames to myserver.company.com. in powershell?
Add-DnsServerResourceRecordCName -Name $server -HostNameAlias myserver.company.com. -ZoneName anpserver.company.com -ComputerName dc1}
I get errors of zone not found