Afficher un message
Vieux 29/08/2006, 17h22   #7
Herb Martin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Can we find all DNS settings of member servers?

"Sally" <Sally@discussions.microsoft.com> wrote in message
news:6AD53D9A-80FE-4026-8C19-716CE9CD1714@microsoft.com...
> Thank you for your geat and it works like a charm.
>


Glad to so you are very welcome. Pass on the
to someone else who needs it. <grin>

How did you end up parsing the results or did you just use the
output for review "as is"?


--
Herb Martin, MCSE, MVP
Accelerated MCSE
http://www.LearnQuick.Com
[phone number on web site]

> "Herb Martin" wrote:
>
>> "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.
>> >>
>> >>
>> >>

>>
>>
>>



  Réponse avec citation
 
Page generated in 0,07636 seconds with 9 queries