Home All Groups Group Topic Archive Search About

Dns.Resolve: Query Authoritive Server

Author
19 Feb 2006 7:34 PM
Ben
Hi

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

Thanks
B

Author
19 Feb 2006 7:53 PM
vbnetdev
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



Show quoteHide quote
"Ben" <B**@Newsgroups.microsoft.com> wrote in message
news:eXX04tYNGHA.740@TK2MSFTNGP12.phx.gbl...
> Hi
>
> Is there any way of using dns.resolve to only query the Authoritive Server
> for that domain.
>
> Thanks
> B
>
>
Author
21 Feb 2006 7:05 PM
Ben
Hi

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

Thanks
B

Show quoteHide quote
"vbnetdev" <vbnetdev@community.nospam> wrote in message
news:#miJ94YNGHA.2336@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" <B**@Newsgroups.microsoft.com> wrote in message
> news:eXX04tYNGHA.740@TK2MSFTNGP12.phx.gbl...
> > Hi
> >
> > Is there any way of using dns.resolve to only query the Authoritive
Server
> > for that domain.
> >
> > Thanks
> > B
> >
> >
>
>
Author
21 Feb 2006 7:19 PM
vbnetdev
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



Show quoteHide quote
"Ben" <B**@Newsgroups.microsoft.com> wrote in message
news:ek$q0mxNGHA.344@TK2MSFTNGP11.phx.gbl...
> Hi
>
> Thanks for your post, but what would the Scope be?
>
> Thanks
> B
>
> "vbnetdev" <vbnetdev@community.nospam> wrote in message
> news:#miJ94YNGHA.2336@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" <B**@Newsgroups.microsoft.com> wrote in message
>> news:eXX04tYNGHA.740@TK2MSFTNGP12.phx.gbl...
>> > Hi
>> >
>> > Is there any way of using dns.resolve to only query the Authoritive
> Server
>> > for that domain.
>> >
>> > Thanks
>> > B
>> >
>> >
>>
>>
>
>