Welcome › Forums › General PowerShell Q&A › Add cname to dns subdomain
This topic contains 0 replies, has 1 voice, and was last updated by majorkuso87 1 month, 1 week ago.
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
You must be logged in to reply to this topic.