Major problem with hostname resolution in Win2K

  • Thread starter Thread starter chrisrocker90@gmail.com
  • Start date Start date
C

chrisrocker90@gmail.com

Guest
Hi,

I'm having a terrifically difficult time getting the hostname of my
win2k
computer to resolve to the correct, external IP address (as opposed to
127.0.0.1). I think it's a Win2K problem,

Here's the issue: I'm using java to display the network interfaces and
their names on two identical Dell Latitude D800 Win2K systems. The
(undesired) result I'm getting on one system is as follows:

Interface: MS TCP Loopback Interface
Canonical Name: Chris <---- computer name
hostAddress: 127.0.0.1
Interface Broadcomm NeXtrem Gigabit Ehternet Driver
Canonical Name: 192.168.12.20
hostAddress: 192.168.12.20

On another system called "Rock", I get the desired result, with the
exact same code:

Interface: MS TCP Loopback Interface
Canonical Name: 127.0.0.1
hostAddress: 127.0.0.1
Interface Broadcomm NeXtrem Gigabit Ehternet Driver
Canonical Name: Rock <---- computer name
hostAddress: 192.168.12.40

Anyone know what could cause this behavior? I've tried just about
everything. I think I'm going to have recode around this nasty bug.
That means I'll have to modify some complicated, inherited spaghetti
code, instead of a hoped for tweak.

I've tried a bunch of things already (modifying hosts, lhmhosts,
disabling dns lookup service, ipconfig /dnsflush /registerdns,
enabling LMHOST lookup, changing the system name, searching through
the registry for computer name and 127.0.0.1). As far as I can tell,
all the relevant settings between the two systems are identical.

Any help would be vastly appreciated!

ps: java code used to display this output:

import java.net.*;
import java.util.*;

public class GetPublicHostName {

public static void main (String args[]) throws Throwable{
System.out.println("abc");
NetworkInterface iface = null;
for (Enumeration ifaces =
NetworkInterface.getNetworkInterfaces();
ifaces.hasMoreElements();){
System.out.println("efg");
iface =
(NetworkInterface)ifaces.nextElement();
System.out.println("xInterface:" +
iface.getDisplayName());
InetAddress ia = null;
for (Enumeration ips =
iface.getInetAddresses();
ips.hasMoreElements();){
ia = (InetAddress)ips.nextElement();

System.out.println(ia.getCanonicalHostName() + " " +
ia.getHostAddress());
}
}
}

Thanks!
 
Re: Major problem with hostname resolution in Win2K


<chrisrocker90@gmail.com> wrote in message
news:1191674079.292643.43110@19g2000hsx.googlegroups.com...
> Hi,
>
> I'm having a terrifically difficult time getting the hostname of my
> win2k
> computer to resolve to the correct, external IP address (as opposed to
> 127.0.0.1). I think it's a Win2K problem,
>
> Here's the issue: I'm using java to display the network interfaces and
> their names on two identical Dell Latitude D800 Win2K systems. The
> (undesired) result I'm getting on one system is as follows:
>
> Interface: MS TCP Loopback Interface
> Canonical Name: Chris <---- computer name
> hostAddress: 127.0.0.1
> Interface Broadcomm NeXtrem Gigabit Ehternet Driver
> Canonical Name: 192.168.12.20
> hostAddress: 192.168.12.20
>
> On another system called "Rock", I get the desired result, with the
> exact same code:
>
> Interface: MS TCP Loopback Interface
> Canonical Name: 127.0.0.1
> hostAddress: 127.0.0.1
> Interface Broadcomm NeXtrem Gigabit Ehternet Driver
> Canonical Name: Rock <---- computer name
> hostAddress: 192.168.12.40
>



Did you clone one sytem to the other machine then simply rename one?

You probably know this already but maybe you missed something:

http://www.rscott.org/dns/cname.html
 
Back
Top