Dns.Resolve: Query Authoritive Server

  • Thread starter Thread starter Ben
  • Start date Start date
B

Ben

Hi

Is there any way of using dns.resolve to only query the Authoritive Server
for that domain.

Thanks
B
 
Dim query As New ObjectQuery( _
"SELECT * FROM MicrosoftDNS_Zone")
Dim searcher As New ManagementObjectSearcher(scope, query)
For Each queryObj As ManagementObject in searcher.Get()
Console.WriteLine("-----------------------------------")
Console.WriteLine("MicrosoftDNS_Zone instance")
Console.WriteLine("-----------------------------------")
Console.WriteLine("DnsServerName: {0}",
queryObj("DnsServerName"))
Next
 
Dim searcher As New ManagementObjectSearcher( _
"root\MicrosoftDNS", _
"SELECT * FROM MicrosoftDNS_Zone")

For Each queryObj As ManagementObject in searcher.Get()

Console.WriteLine("DnsServerName: {0}",
queryObj("DnsServerName"))
Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top