Networking Forums

Networking Forums > Computer Networking > Windows Networking > Reading DNS IP from Registry - How to ?

Reply
Thread Tools Display Modes

Reading DNS IP from Registry - How to ?

 
 
Eoin
Guest
Posts: n/a

 
      08-21-2006, 08:43 AM
Hi there,

Hope this is the correct group for this question, apologies in advance
if not.

I need to read in the DNS addresses that are stored in the registry of
Windows 2003 Ent. I have found their location and have the API's (C++)
to access specific locations in the registry BUT ... the location of
the DNS addresses is preceeded by an interface id
e.g
..\interface\{1234-3D0342-T.......}\NameServer

The Id is my problem, how do I get to the NameServer attribute without
knowing this {1234-3D0342-T...} value?

Can I get it from querying some other location ? and if not is what I
am doing possible ?

Thanks and regards

Eoin

 
Reply With Quote
 
 
 
 
Ace Fekay [MVP]
Guest
Posts: n/a

 
      08-21-2006, 11:18 AM
In news:(E-Mail Removed) oups.com,
Eoin <(E-Mail Removed)> stated, which I commented on below:
> Hi there,
>
> Hope this is the correct group for this question, apologies in advance
> if not.
>
> I need to read in the DNS addresses that are stored in the registry of
> Windows 2003 Ent. I have found their location and have the API's (C++)
> to access specific locations in the registry BUT ... the location of
> the DNS addresses is preceeded by an interface id
> e.g
> ..\interface\{1234-3D0342-T.......}\NameServer
>
> The Id is my problem, how do I get to the NameServer attribute without
> knowing this {1234-3D0342-T...} value?
>
> Can I get it from querying some other location ? and if not is what I
> am doing possible ?
>
> Thanks and regards
>
> Eoin


You might want to try the microsoft.public.vcbscript newsgroup. I think
there's a newsgroup for C# as well, but I must check. I think the folks in
the vbscript may be able to answer either way. The first thing I can think
of is as long as the default name of the connection hasn't been renamed
("Local Area Connection"), or use a standard naming policy for the
connection being used on all servers, I would imagine you can query for the
connection name instead of the attribute value. But then again, I am not a
programmer...


--
Ace
Innovative IT Concepts, Inc
Willow Grove, PA

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
Microsoft MVP - Directory Services
Microsoft Certified Trainer

Having difficulty reading or finding responses to your post?
Instead of the website you're using, I suggest to use OEx (Outlook Express
or any other newsreader), and configure a news account, pointing to
news.microsoft.com. This is a direct link to the Microsoft Public
Newsgroups. It is FREE and requires NO ISP's Usenet account. OEx allows you
to easily find, track threads, cross-post, sort by date, poster's name,
watched threads or subject.
It's easy:

How to Configure OEx for Internet News
http://support.microsoft.com/?id=171164

Infinite Diversities in Infinite Combinations
Assimilation Imminent. Resistance is Futile
"Very funny Scotty. Now, beam down my clothes."

The only constant in life is change...


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Football. Why are you reading this? Murry Broadband 2 06-11-2010 05:22 PM
How to identify ephemeral port range of Windows server2008 using registry keys? What are the new Registry keys? jhon Fernando Windows Networking 0 09-18-2008 12:28 AM
Worth Reading david.buckner79@gmail.com Wireless Internet 0 04-30-2007 06:53 AM
reading adjecent pc's name kernel.lover Linux Networking 2 02-26-2005 05:56 PM
reading external ip stephen Linux Networking 15 09-01-2004 01:51 AM



1 2 3 4 5 6 7 8 9 10 11