RWF,
My guess is that they cleaned up the call so that if there is not a DNS
entry for this IP address (and there is not), then it throws an exception to
indicate so (a better solution would have been to return null, in my
opinion).
However, I would say it is not a bad thing to throw an exception, after
all, there is no host entry to be found to begin with!
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"RWF" <RW*@discussions.microsoft.com> wrote in message
news:22**********************************@microsof t.com...
I am trying to do a reverse DNS lookup using Dns.GetHostEntry in .NET 2.0,
but it seems to kind of crap out when the result is an answer with
multiple
records. It doesnt seem to give any type of answer.
The old Dns.GetHostByAddress seems to work partially by atleast returning
1
IpHostEntry, but it has been deprecated.
Any ideas on how to retrieve the multiple records?
example:
Dns.GetHostEntry(IPAddress.Parse("207.46.130.108") );
vs.
Dns.GetHostByAddress(IPAddress.Parse("207.46.130.1 08"));