DNS .Resolve & .NET 2.0 Headache???

K

kvnsdr

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)
{
 
T

The Grim Reaper

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
 
W

Willy Denoyette [MVP]

And what is there returned from the command line utility nslookup.exe?

nslookup <ipaddress>

Willy.

|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
|
| | >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)
| > {
| >
|
|
 
N

Nick Hounsome

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 said:
I'm not using domains.

Willy Denoyette said:
And what is there returned from the command line utility nslookup.exe?

nslookup <ipaddress>

Willy.

|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
|
| | >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)
| > {
| >
|
|
 
T

The Grim Reaper

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 said:
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 said:
I'm not using domains.

Willy Denoyette said:
And what is there returned from the command line utility nslookup.exe?

nslookup <ipaddress>

Willy.

|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
|
| | >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)
| > {
| >
|
|
 
N

Nick Hounsome

I was really just pointing out that it cannot be a bug for DNS to not do
non-DNS stuff (that's a lot of negatives)

I recently used a bit of PInvoke to get a list of servers.
I'm not a Win32 guy so I don't remember the name of the function but you
could pass all sorts values to select various sorts of system.
Sorry - Not very helpful I know.

The Grim Reaper said:
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 said:
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 said:
I'm not using domains.

And what is there returned from the command line utility nslookup.exe?

nslookup <ipaddress>

Willy.

|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
|
| | >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)
| > {
| >
|
|
 
T

The Grim Reaper

That's OK.... it's nice to know <someone's> reading this!!
___________________________
The Grim Reaper

Nick Hounsome said:
I was really just pointing out that it cannot be a bug for DNS to not do
non-DNS stuff (that's a lot of negatives)

I recently used a bit of PInvoke to get a list of servers.
I'm not a Win32 guy so I don't remember the name of the function but you
could pass all sorts values to select various sorts of system.
Sorry - Not very helpful I know.

The Grim Reaper said:
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 said:
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"?

I'm not using domains.

And what is there returned from the command line utility nslookup.exe?

nslookup <ipaddress>

Willy.

|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
|
| | >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)
| > {
| >
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top