By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,133 Members | 1,092 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,133 IT Pros & Developers. It's quick & easy.

Dns.Resolve: Query Authoritive Server

P: n/a
Ben
Hi

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

Thanks
B
Feb 19 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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
--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com

"Ben" <Be*@Newsgroups.microsoft.com> wrote in message
news:eX*************@TK2MSFTNGP12.phx.gbl...
Hi

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

Thanks
B

Feb 19 '06 #2

P: n/a
Ben
Hi

Thanks for your post, but what would the Scope be?

Thanks
B

"vbnetdev" <vb******@community.nospam> wrote in message
news:#m**************@TK2MSFTNGP12.phx.gbl...
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
--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com

"Ben" <Be*@Newsgroups.microsoft.com> wrote in message
news:eX*************@TK2MSFTNGP12.phx.gbl...
Hi

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

Thanks
B


Feb 21 '06 #3

P: n/a
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

--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com

"Ben" <Be*@Newsgroups.microsoft.com> wrote in message
news:ek*************@TK2MSFTNGP11.phx.gbl...
Hi

Thanks for your post, but what would the Scope be?

Thanks
B

"vbnetdev" <vb******@community.nospam> wrote in message
news:#m**************@TK2MSFTNGP12.phx.gbl...
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
--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com

"Ben" <Be*@Newsgroups.microsoft.com> wrote in message
news:eX*************@TK2MSFTNGP12.phx.gbl...
> Hi
>
> Is there any way of using dns.resolve to only query the Authoritive Server > for that domain.
>
> Thanks
> B
>
>



Feb 21 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.