473,499 Members | 1,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

System.Net.Dns.GetHostByAddress returns incorrec t Hostame

Hi!

I have a problem with

System.Net.Dns.GetHostByAddress(ls_Request.UserHos tAddress()).HostName

Usually the call GetHostByAddress returns the correct hostname of the
client, but sometimes I get a hostname like _CERDR1342B88E.
Why? The clients are running under Windows CE.NET 4.1...

Sven
Nov 18 '05 #1
5 2242
Sven wrote:
Hi!

I have a problem with

System.Net.Dns.GetHostByAddress(ls_Request.UserHos tAddress()).HostName

Usually the call GetHostByAddress returns the correct hostname of the
client, but sometimes I get a hostname like _CERDR1342B88E.
Why? The clients are running under Windows CE.NET 4.1...

Sven


What happens if you probe a ip address that returns such a name op port 445?
Is it open? If so, the computername is returned and not the hostname.

Someone with more knowledge of the tcp/ip system could clear this out.

//Rutger
Nov 18 '05 #2
You should post this to the
microsoft.public.dotnet.framework.compactframework group.

feroze
==============
this posting is provided as-is.

"Rutger Smit" <Do******@gmail.com> wrote in message
news:10*************@corp.supernews.com...
Sven wrote:
Hi!

I have a problem with

System.Net.Dns.GetHostByAddress(ls_Request.UserHos tAddress()).HostName

Usually the call GetHostByAddress returns the correct hostname of the
client, but sometimes I get a hostname like _CERDR1342B88E.
Why? The clients are running under Windows CE.NET 4.1...

Sven
What happens if you probe a ip address that returns such a name op port

445? Is it open? If so, the computername is returned and not the hostname.

Someone with more knowledge of the tcp/ip system could clear this out.

//Rutger

Nov 18 '05 #3
Well, the call System.Net.Dns.GetHostByAddress is executed on a
Windows 2003 Server... and i want to get the hostname of an IP address
(from a Windows CE system). I don't know if the behaviour is specific
to CE...

"Feroze [msft]" <fe*****@online.microsoft.com> wrote in message news:<41********@news.microsoft.com>...
You should post this to the
microsoft.public.dotnet.framework.compactframework group.

feroze
==============
this posting is provided as-is.

Nov 18 '05 #4
Rutger Smit <Do******@gmail.com> wrote in message news:<10*************@corp.supernews.com>...
Sven wrote:
Hi!

I have a problem with

System.Net.Dns.GetHostByAddress(ls_Request.UserHos tAddress()).HostName

Usually the call GetHostByAddress returns the correct hostname of the
client, but sometimes I get a hostname like _CERDR1342B88E.
Why? The clients are running under Windows CE.NET 4.1...

Sven


What happens if you probe a ip address that returns such a name op port 445?
Is it open? If so, the computername is returned and not the hostname.

Someone with more knowledge of the tcp/ip system could clear this out.

//Rutger


I looked up the computername on the windows ce machines, but the
computername is the one we set initialy (not _CERDR1342B88E)! But the
call System.Net.Dns.GetHostByAddress returns _CERDR1342B88E. I don't
know what the call System.Net.Dns.GetHostByAddress exactly does, but
it does not seem to be right.

Since the hostname is not really _CERDR1342B88E, i think a probe on
port 445 does not make sense...

Sven
Nov 18 '05 #5
Sven wrote:
Rutger Smit <Do******@gmail.com> wrote in message news:<10*************@corp.supernews.com>...

I looked up the computername on the windows ce machines, but the
computername is the one we set initialy (not _CERDR1342B88E)! But the
call System.Net.Dns.GetHostByAddress returns _CERDR1342B88E. I don't
know what the call System.Net.Dns.GetHostByAddress exactly does, but
it does not seem to be right.

Since the hostname is not really _CERDR1342B88E, i think a probe on
port 445 does not make sense...

Sven

It looks like GetHostByAddress does NOT always do a reverse lookup. Ik
don't know what is doe. Try to analyze the network logs that can be
caputred using Ethereal.

The port 445 suggestion was becaus of the computername, but it doens't
have anything to do with it.

//Rutger
Nov 18 '05 #6

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

Similar topics

1
5188
by: ruggierorizzi | last post by:
Hi everyone, i would like to know if there is a difference between gethostbyaddress method and $_SERVER. furthermore i hve a little problem using ip address resolution. Some ip address...
1
471
by: Amy L. | last post by:
When I make the following call: IPHostEntry hostInfo = Dns.GetHostByAddress( hostIPAddress ) ; If the PTR (i.e. the IP address to name resolution) does not exist my program will start making...
1
2575
by: huzz | last post by:
I wrote a method which takes an ip address and returns hostname as shown below. It works fine.. only problem i have is when the passed ip address is not found in the database the method throws this...
3
4010
by: RZ | last post by:
Hi Folks, I wrote an app to scan our Packet Filter logs for certain IPs. It uses GetHostByAddress(). I used multi-threading to get around the 2 second hang. The remaining problem is that...
1
2584
by: Jed | last post by:
I have a class for logging information about user activity on a web site, but it suddenly became really slow. I was wondering what factors may have caused the slow down. Initially, I used the...
2
1366
by: Dave | last post by:
I don't suppose anyone will be able to help with this, it's most odd. I use IPHostEntry hostInfo = GetHostByAddress(ipAddress) to resolve an IP address to a name (in this case it is actually the...
1
2026
by: Asfar Sadewa | last post by:
Hello all, I have a web application written in C# that needs to track the machine name, ip, and the user name of the accessor. the application is hosted on a web server using SSL. i got the...
3
16567
by: Steve Richter | last post by:
I am using Dns.GetHostByAddress and Dns.Resolve to successfully resolve and IP address to an IPEndPoint. IPEndPoint ep = null; IPAddress ipAddr = IPAddress.Parse(m_sRemoteHost); ep = new...
1
2975
by: Nicopilami | last post by:
Hello, i would like to retrieve the hostname from IP adress, but according to microsoft (VS 2008 Express), DNS.Resolve and GetHostByAddress methods seem to be deprecated, and all i found on google...
0
7132
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7178
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
5475
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4919
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
4602
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...
0
3103
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
302
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.