T
The Grim Reaper
Hi all,
I have a small "irritant" to do with DNS resolving in .NET Framework v2.0.
For this example, assume the following network information;
Local IP address is 192.168.0.10, on a PC named "PC_01"
Remote address is 192.168.0.20, on a local LAN, and named "PC_02"
DNS.GetHostByAddress("192.168.0.20").Hostname returns "PC_02"
DNS.Resolve("192.168.0.20").Hostname returns "PC_02"
Both these methods are marked obsolete in v2.0 of the framework, and
GetHostEntry is recommended as the replacement. However;
DNS.GetHostEntry("192.168.0.20").Hostname returns "192.168.0.20" .....
not the hostname!!
The only other thing I've noticed is that
DNS.GetHostEntry("192.168.0.10").Hostname returns "PC_01", so it seems to
work on the local node.
Anyone got any idea why!??! Or is it just an annoying bug in
GetHostEntry()??
__________________________________
The Grim Reaper
I have a small "irritant" to do with DNS resolving in .NET Framework v2.0.
For this example, assume the following network information;
Local IP address is 192.168.0.10, on a PC named "PC_01"
Remote address is 192.168.0.20, on a local LAN, and named "PC_02"
DNS.GetHostByAddress("192.168.0.20").Hostname returns "PC_02"
DNS.Resolve("192.168.0.20").Hostname returns "PC_02"
Both these methods are marked obsolete in v2.0 of the framework, and
GetHostEntry is recommended as the replacement. However;
DNS.GetHostEntry("192.168.0.20").Hostname returns "192.168.0.20" .....
not the hostname!!
The only other thing I've noticed is that
DNS.GetHostEntry("192.168.0.10").Hostname returns "PC_01", so it seems to
work on the local node.
Anyone got any idea why!??! Or is it just an annoying bug in
GetHostEntry()??
__________________________________
The Grim Reaper