RE: Questions regarding which APIs to use to retrieve network info
- From: "Matt" <anonmous@xxxxxxxxxxxxx>
- Date: Fri, 13 May 2005 06:21:02 -0700
Hi Rhett,
Thanks for the quick response. After posting my question I came across a
utility, dnscmd, that appears to be able to give the information I'm looking
for (locally and remotely). I've only tried it against Windows 2003 servers.
It gives information about root hints and forwarders. My follow up
questions are as follows:
1) I know I asked for a Win2000 / Win2003 solution, but is there any
programmatic way (other than WMI) to retrieve the root hints and forwarders
from a DNS server? (If the answer to this question is no, then essentially
this means that dnscmd uses WMI, correct?)
2) I found the cache.dns file prior to posting my question, but it appears
to be a static file, rather than reflecting the DNS Server Cache from one
moment to the next. Is reading the cache.dns file going to give me the same
information as the information I can see about root hints in dnsmgmt?
Thanks,
Matt
"Rhett Gong [MSFT]" wrote:
> Hello Matt,
> Please check inline for these 2 questions.
> >I need to retrieve the list of IP addresses of Forwarders to which a DNS
> >server forwards queries.
> We can query the Forwarders[] properties of MicrosoftDNS_Server for this IP
> list.
>
> >I need to retrieve a list of root hints configured for a DNS server.
> If you can't use WMI then there is no other api to retrieve a list of root
> hint. You may go dig into Cache.dns file under the
> %SystemRoot%\\System32\\Dns to retrieve this information.
>
> Please let me know if my answer helps you resolve the problem. If there is
> anything more I can assist you, please feel free to let me know.
>
> Thanks,
> Rhett Gong [MSFT]
> Microsoft Online Partner Support
> Get Secure! - www.microsoft.com/security
> http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
> &SD=msdn
>
> This posting is provided "AS IS" with no warranties and confers no rights.
>
>
.
- Follow-Ups:
- References:
- Questions regarding which APIs to use to retrieve network info
- From: Matt
- RE: Questions regarding which APIs to use to retrieve network info
- From: Rhett Gong [MSFT]
- Questions regarding which APIs to use to retrieve network info
- Prev by Date: Re: XP SP2 - sockets server (2003) and client xp sp2
- Next by Date: Route table changing application
- Previous by thread: RE: Questions regarding which APIs to use to retrieve network info
- Next by thread: RE: Questions regarding which APIs to use to retrieve network info
- Index(es):
Relevant Pages
|