T
thammond
From what I have seen, I can use the hosts and lmhosts files to
configure the IP Addresses returned by gethostbyname() for any computer
name _except_ local host's computer name (i.e. the name returned by
typing "hostname" at a command prompt). Can anyone back that up, or
prove me wrong?
I have a multi-homed computer using XP Embedded. I need my computer
name to always resolve to the first IP address on "Local Area
Connection" (has a static IP address). But I have seen it get resolved
to one of the static IP addresses on my second network card on
different targets. Sounds like a minor issue, but it screws up the 3rd
party software I have to integrate with. The only advice people have
is to add an entry to the hosts and lmhosts files, but I have found
that any entry I put in these files for my own computer name is
completely ignored.
Got any suggestions?
Thanks.
- Tony H.
configure the IP Addresses returned by gethostbyname() for any computer
name _except_ local host's computer name (i.e. the name returned by
typing "hostname" at a command prompt). Can anyone back that up, or
prove me wrong?
I have a multi-homed computer using XP Embedded. I need my computer
name to always resolve to the first IP address on "Local Area
Connection" (has a static IP address). But I have seen it get resolved
to one of the static IP addresses on my second network card on
different targets. Sounds like a minor issue, but it screws up the 3rd
party software I have to integrate with. The only advice people have
is to add an entry to the hosts and lmhosts files, but I have found
that any entry I put in these files for my own computer name is
completely ignored.
Got any suggestions?
Thanks.
- Tony H.