Bollywood | Mortgage Calculator | Loans | Free Text Messages | Bad Credit Mortgages
name resolution problem [Archive] - PCMech Forums

PDA

View Full Version : name resolution problem


sdkramer
08-31-2001, 01:40 AM
I've got a BSD box named typhoid on network.com. It fetches an IP and can do all the good things that machines on this network are supposed to do. however no other users can find the machine. ping typhoid.network.com does not work. telnet typhoid.network.com however if I use the IP it works. How can I get these windows boxes to resolve the hostname to an IP?

Thanks in Advance,

Seth "Cosmo" Kramer

lynchmob
08-31-2001, 05:31 AM
You could add the bsd box to the all the host and lmhost files to see if that works.Someone with more network savvy(I have none)could provide a better solution.
lynch

Statica
08-31-2001, 08:11 AM
You have to edit <b>/etc/hosts</b> file to map IP addresses to host names.

for example this would be probably what your network's /etc/hosts should look like..


<b>
127.0.0.1 localhost localhost.localdomain
192.168.0.1 diphtheria
192.168.0.2 typhoid
192.168.0.3 malaria
</B>

If you are using NetBIOS on any of the windoze computers on your network then its a good idea to do the same with /etc/lmhosts as well

<b>
#/etc/lmhosts
localhost hospital
diphtheria diphtheria
typhoid typhoid
malaria malaria
</b>

This maps the hosts to the Netbios names (on the right).

HTH

sdkramer
08-31-2001, 08:40 AM
Only problem with that idea, the IP address is dynamically assigned and I don't want to go around to each machine on our network to adjust the hosts file every 5 days when the lease is up and I have a new ip.

Statica
08-31-2001, 09:57 AM
How do you get the IP? DHCP?

Seems like you might have to run Dynip or some DNS.

sdkramer
08-31-2001, 10:04 AM
Yeah. DHCP. But your last comment was over my head could you explain further?

Thanks,

Seth "Cosmo" Kramer