Discussion:
MicrosoftDNS_RootHints
(too old to reply)
Gerry Hickman
2010-05-13 15:33:50 UTC
Permalink
Hi,

On Windows AD integrated DNS, I'd like to list the root hints as shown by
the Administrative Tools:DNS snap-in.

I found the classes for the WMI DNS Provider, I was able to list zones for
each server, but I could not find how to list of root hint IP addresses.

Does anyone have a code example?
--
Gerry Hickman
London (UK)
a
2010-05-14 09:08:29 UTC
Permalink
Hi Gerry

MicrosoftDNS_RootHints.GetDistinguishedName seems what you are looking for.
Could you please try the method and let us know if it helps?
Post by Gerry Hickman
Hi,
On Windows AD integrated DNS, I'd like to list the root hints as shown by
the Administrative Tools:DNS snap-in.
I found the classes for the WMI DNS Provider, I was able to list zones for
each server, but I could not find how to list of root hint IP addresses.
Does anyone have a code example?
--
Gerry Hickman
London (UK)
Gerry Hickman
2010-05-17 15:42:29 UTC
Permalink
Post by a
Hi Gerry
MicrosoftDNS_RootHints.GetDistinguishedName seems what you are looking
for. Could you please try the method and let us know if it helps?
Hello,

This gives you the path to the Active Directory container where the root
hints are stored, but it doesn't help you list the values at that location.
If I enumerate InstancesOf("MicrosoftDNS_RootHints"); I get exactly ONE
instance of the class as shown below

Got Server MyDC
Properties of the MicrosoftDNS_RootHints class:
Caption: null
ContainerName: ..RootHints
Description: null
DnsServerName: MyDC.MyDomain
InstallDate: null
Name: ..RootHints
Status: null

Executing the GetDistinguishedName() method give me this:

"dc=..RootHints,cn=MicrosoftDNS,cn=System,DC=MyDomain"

so I can get the container in AD, but how can I list the IP addresses of the
Root Hint servers?
Post by a
Post by Gerry Hickman
Hi,
On Windows AD integrated DNS, I'd like to list the root hints as shown by
the Administrative Tools:DNS snap-in.
I found the classes for the WMI DNS Provider, I was able to list zones
for each server, but I could not find how to list of root hint IP
addresses.
Does anyone have a code example?
--
Gerry Hickman
London (UK)
Loading...