Yes, of course I know what DNS stands for.
Point me in the direction of the System.WorkgroupNameServer.GetHostEntry()
function, and I'll be on my merry way!!
I was pointing out that using the nslookup.exe utility was fruitless for my
purposes, as it using domain information.
For background info; all the networks we build for work are usually 8 to 16
machines, on a single workgroup. They run 2 or 3 separate networks in
parallel for redundancy - servers are also in redundant pairs, however this
has nothing to do with MS clusters/redundant servers or anything - it's just
to enable the software we use to run "as it was designed". [don't get me
started on that one!]
Bottom line is; I need to detect the nodes connected to "my" node on the
local subnet - i.e. 192.1.0.xx. The only reliable way I've found so far is
to literally ping all 255 addresses and process the results. The
GetHostEntry() comes in handy just to resolve the host from the IP address
that replied.
_______________________________________
The Grim Reaper
"Nick Hounsome" <nh***@nickhounsome.me.uk> wrote in message
news:tk*********************@fe3.news.blueyonder.c o.uk...
If you are not using domains then how do you expect DNS to help you?
You do know that DNS stands for "Domain Name Server"?
"The Grim Reaper" <gr*********@REMOVEbtopenworld.com> wrote in message
news:ds**********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com... I'm not using domains.
"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... And what is there returned from the command line utility nslookup.exe?
nslookup <ipaddress>
Willy.
"The Grim Reaper" <gr*********@REMOVEbtopenworld.com> wrote in message
news:ds**********@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com...
|I submitted an almost identical post on 12th Feb (named:
| DNS.GetHostEntry() )
| I have also reported the bug to Microsoft on MSDN Feedback.
| The only replies I've received from anyone point out that my reverse
lookup
| may not be working.. but I've tested the new .NET 2.0 code on several
| networks now, and always get the same result - including from our
| "professionally" ( :)) ) configured networks at work!
|
| Don't think anyone can help you until MS give us a reply.
|
| Until then, I'm using the obsoleted function Dns.GetHostByAddress() to
do
| the job.
| ________________________________________
| The Grim Reaper
|
| "kvnsdr" <ke***@upgrade1.com> wrote in message
| news:11*************@corp.supernews.com...
| >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 that is
entered.
| >What's up Microsoft????
| >
| > I can say that before we switched over .NET 1.1 to 2.0 the
| > Dns.Resolve(entry); would find a name for any IP, LAN or WAN.
| >
| > Q. Any ideas??????????
| >
| > [This is new .NET 2.0 method that replaced the former .Resolve
method]
| >
| > private void LookupIP(string entry)
| > {
| > try
| > {
| > IPHostEntry IP = Dns.GetHostEntry(entry);
| > txtBox2.Text = IP.HostName;
| > }
| > catch(Exception exception)
| > {
| >
|
|