473,413 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

DNS .Resolve & .NET 2.0 Headache???

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)
{
Feb 12 '06 #1
7 2133
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)
{

Feb 12 '06 #2
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)
| > {
| >
|
|
Feb 12 '06 #3
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)
| > {
| >
|
|

Feb 13 '06 #4
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)
| > {
| >
|
|


Feb 14 '06 #5
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)
| > {
| >
|
|



Feb 14 '06 #6
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" <gr*********@REMOVEbtopenworld.com> wrote in message
news:ds**********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
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)
| > {
| >
|
|



Feb 14 '06 #7
That's OK.... it's nice to know <someone's> reading this!!
___________________________
The Grim Reaper

"Nick Hounsome" <nh***@nickhounsome.me.uk> wrote in message
news:w%*****************@fe2.news.blueyonder.co.uk ...
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" <gr*********@REMOVEbtopenworld.com> wrote in message
news:ds**********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
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)
> | > {
> | >
> |
> |
>
>



Feb 15 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
by: Greg Adourian | last post by:
Hi, I'm breaking my head over the following few lines of code, generated with Photoshop Slices. As soon as the structure is slightly complicated, the output is broken. I can't seem to follow...
0
by: Mark Stokes | last post by:
Hi there, I wanted a bit of advice on a program (a prototype) that I am trying to write that uses threads. I will outline what I am attempting to do, and if anyone has any advice on the way I...
0
by: Plumer | last post by:
Hello everyone, Yesterday I posted a message about implementing drag & drop in a TreeView control. I'm having real difficulty getting this to work -- the process seems to be incredibly...
7
by: PaulR | last post by:
Hi, We have several inter-related SQL Table Functions, which all optimise fine on their own and most of the time together. However, increasingly as we are adding logic and making their logic...
15
by: Ralph A. Moeritz | last post by:
Hello, does anyone have a clue when/if we might see K&R3? K&R2 is starting to feel a little dusty... Can anyone recommend any other good printed reference material? Regards, Ralph
2
by: Wayne | last post by:
This is a copy of a message I previously posted in a Microsoft Access Newsgroup, but it was suggested to me that my problem is ASP related and not Access, and hence I'm posting in this newsgroup now...
1
by: kvnsdr | last post by:
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...
1
by: Simone | last post by:
Is it possible to enable drag functionality for an object in a frame and then drop it in another frame? If yes, how? Thank you. Simone
7
sharijl
by: sharijl | last post by:
I have a SQL query which returns the total amount of issues: SELECT issue,Count(issue) as total FROM mytable Group by issue This works but I need the total of the same catagory in three tables...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.