473,406 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Dns.Resolve: Query Authoritive Server

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
3 1992
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Subrahmanyam Arya | last post by:
Dear oracle gurus, I am unable to get past the error ORA-12154: TNS: could not resolve service name on my host when using hsodbc to talk to a remote mysql database. i got from the meta link all...
2
by: Sheela | last post by:
I am trying to access the tables of a remote database(db2) from db1 database. I am getting the following error: ORA-12154: TNS:could not resolve service name I tried tnsping the db2 service_name...
1
by: Dalan | last post by:
I'm experiencing a Query Syntax Error with an Access 97 Db. Actually, the query performs as expected when adding any new records or editing existing ones and even deleting records, EXCEPT when the...
3
by: beta | last post by:
Hello everyone, I need some help here. If anyone has encountered this, knidly give me your advice. I have a command button (Command0) and a listbox (List1). Upon clicking the command button,...
2
by: Rob Levine | last post by:
Hi All, This is a cut down version of a post from earlier entitled "Name resolution in .Net". Apologies, for the repeat, but I think the first post was too verbose (it came from a blog article...
2
by: Wayne | last post by:
This is a copy of a message I previously posted in a Microsoft Access Newsgroup, but it was suggested to me that my problem is ASP related and not Access, and hence I'm posting in this newsgroup now...
7
by: kvnsdr | last post by:
I can type an IP address and receive Internet domain name and my workstation name however no other IPs of computers on our internal network will resolve to a thier machine name only to the same IP...
1
by: Yas | last post by:
Hello, I currently have Table1 and View1. View1 is a query from 2 or 3 tables that works fine on its own. However in my current query if I try to use it...something like... SELECT a.col1,...
6
by: jwgrafflin | last post by:
I keep getting the same error: This code works just fine on another site, and all the other php pages work just fine. But this one is driving me nuts trying to figure out the problem. <?php...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.