Only reason I am creating this post is coz I Googled for the above and didn’t find any relevant hits
I know I can use the Add-DnsServerZoneDelegation cmdlet to create a new delegated zone (basically a sub-domain of a zone hosted by our DNS server, wherein some other DNS server hosts that sub-domain and we merely delegate any requests for that sub-domain to this other DNS server). But I wasn’t sure how I’d add multiple name servers. The switches give an option to give an array of IP addresses, but that’s just any array of IP addresses for a single name server. What I wanted was to have an array of name servers each with their own IP.
Anyways, turns out all I had to do was run the command for each name server.
1 2 3 |
Add-DnsServerZoneDelegation -ComputerName myDNS_Server -ChildZoneName "subzone" -Name "parentzone.com" -NameServer "DNS01.somedomain" -IPAddress "192.168.1.1" Add-DnsServerZoneDelegation -ComputerName myDNS_Server -ChildZoneName "subzone" -Name "parentzone.com" -NameServer "DNS02.somedomain" -IPAddress "192.168.1.2" Add-DnsServerZoneDelegation -ComputerName myDNS_Server -ChildZoneName "subzone" -Name "parentzone.com" -NameServer "DNS03.somedomain" -IPAddress "192.168.1.3" |
Above I create a delegation from my zone “parentzone.com” to 3 DNS servers “DNS0[1-3].somedomain” (also specified by their respective IPs) for the sub-domain “subzone.parentzone.com”.