I know there is a very similar question posted about this but the fix offered will not work for me so instead of hijacking his thread, i started a new question.
I'm adding an NS record to some zones via Powershell and dnscmd, each with the same result--an asterisk by the IP address, meaning it is an "IP address retrieved as the result of a DNS query and may not represent actual records on this server". The zone absolutely will not transfer when the asterisk is present.
after using the script, i look at the secondary zones created on the DNS2,3 and 4 servers and it says the "Zone Not loaded by DNS Server" if i go back and remove the NS from the Primary created by the script and add the NS manually, the asterisk goes away and after a refresh, the secondary zones are fine and loaded by the DNS server.
If I add the same server via the Name Servers tab in the GUI, there is no asterisk and the zone transfers without issue.
i am doing this to "blackhole" these zones
here is the Powershell script i created (yes, i know it may not be the best way or the best tool, but no we don't have server 2012 yet, i cant import any modules into my Powershell and the DNSCMD tool is all i have to work with and all i am allowed to work with on this network.
i have a text file of the web addresses i am adding to the "blackhole" using the below script
$a = Get-Content "D:\filelocation\blackholetest.txt"
$b = "@"
foreach ($a in $a)
{
dnscmd DNS1 /zoneadd $a /Primary /File $a".dns"
dnscmd DNS1 /recordadd $a WWW A IP.ADD.RE.SS
dnscmd DNS1 /recordadd $a $b NS DNS2.fully.qualified.domain.name
dnscmd DNS1 /recordadd $a $b NS DNS3.fully.qualified.domain.name
dnscmd DNS1 /recordadd $a $b NS DNS4.fully.qualified.domain.name
dnscmd DNS2 /zoneadd $a /Secondary MASTER.DNS.Server.IPAddesss /File $a".dns"
dnscmd DNS3 /zoneadd $a /Secondary MASTER.DNS.Server.IPAddesss /File $a".dns"
dnscmd DNS4 /zoneadd $a /Secondary MASTER.DNS.Server.IPAddesss /File $a".dns"
}