"Sally" <Sally@discussions.microsoft.com> wrote in message
news:B42A5280-C9CB-4998-B125-296129EA31D9@microsoft.com...
> Thanks for your trying to and sorry about my unclear question even I
> can
> not understand myself.
>
> The question is: Is there a way that we can find DNS server IP addresses
> of all member servers (in the TCP/IP settings of memeber servers) instead
> of
> logging on each member server to find it out?
>
I think you are (and origianlly, were) asking if you can run
something REMOTELY to get the IP configuration of (a lot of)
machines, especially the DNS server setting?
If so, yes you can do it but not (trivially*) with anything built-in.
Download the PSutils, especially the PSExec.exe program from
SysInternals.com. Run this PSExec and then parse the results:
psexec \\ComputerName ipconfig /all
Assuming you have a text file of all computer names then this can
work:
for /f %a in (CompNames.txt) do psexec \\%a ipconfig /all >>configs.txt
You'll still have to parse the results (Perl is ideal for this but you can
do
it with any language if you are willing to work hard enough, and maybe
even with built-in tools but getting the "computer name" AND the DNS
settints -- all of them -- together will be a lot of trouble.)
*Built-in but perhaps Non-trivial answer:
Do it from a startup batch file, sending the output to a central server
share:
set DNSfile=\\Server\Share\DNSsettings\%computername%
if not exist %DNSfile% ipconfig /all >%DNSfile%
Advantage: You don't need a list of all the computer names
Disadvantages: You have to wait for each computer to reboot
(and eventually you have to remove the batch
file)
Oh, and you still have to parse the output. (Did I mention Perl?)
--
Herb Martin, MCSE, MVP
Accelerated MCSE
http://www.LearnQuick.Com
[phone number on web site]
> Thank you.
>
>
>
> "Jorge Silva" wrote:
>
>> Hi
>> > Is there a way that we can find DNS settings of all member settings
>> > (DNS
>> > servers' IP addresses in the TCP/IP settings of memeber servers)
>> > instead
>> > of
>> > logging each member server to find it out?
>>
>> Not sure I understand you but to find where a DNS zone is being stored
>> (in
>> which servers) check NS records.
>>
>>
>> --
>> I hope that the information above s you
>>
>> Good Luck
>> Jorge Silva
>> MCSA
>> Systems Administrator
>>
>> "Sally" <Sally@discussions.microsoft.com> wrote in message
>> news:41A84BCC-B6FA-4928-8964-2418E0EE0485@microsoft.com...
>> > Hi all,
>> >
>> > Is there a way that we can find DNS settings of all member settings
>> > (DNS
>> > servers' IP addresses in the TCP/IP settings of memeber servers)
>> > instead
>> > of
>> > logging each member server to find it out? We are in windows 2K3 and
>> > w2K
>> > envir. and have around 250 servers.
>> >
>> > Thanks in advance.
>>
>>
>>