Go Back   PCMech Forums > Linux Support > Linux OS and Software Assistance

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 08-31-2001, 01:40 AM   #1
Member (9 bit)
 
Join Date: Jan 2001
Location: Kalamazoo, MI
Posts: 314
Send a message via ICQ to sdkramer Send a message via AIM to sdkramer Send a message via Yahoo to sdkramer
name resolution problem

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
sdkramer is offline   Reply With Quote
Old 08-31-2001, 05:31 AM   #2
Member (8 bit)
 
lynchmob's Avatar
 
Join Date: Apr 2000
Posts: 226
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
lynchmob is offline   Reply With Quote
Old 08-31-2001, 08:11 AM   #3
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
You have to edit /etc/hosts file to map IP addresses to host names.

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



127.0.0.1 localhost localhost.localdomain
192.168.0.1 diphtheria
192.168.0.2 typhoid
192.168.0.3 malaria


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


#/etc/lmhosts
localhost hospital
diphtheria diphtheria
typhoid typhoid
malaria malaria


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

HTH
Statica is offline   Reply With Quote
Old 08-31-2001, 08:40 AM   #4
Member (9 bit)
 
Join Date: Jan 2001
Location: Kalamazoo, MI
Posts: 314
Send a message via ICQ to sdkramer Send a message via AIM to sdkramer Send a message via Yahoo to sdkramer
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.
sdkramer is offline   Reply With Quote
Old 08-31-2001, 09:57 AM   #5
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
How do you get the IP? DHCP?

Seems like you might have to run Dynip or some DNS.
Statica is offline   Reply With Quote
Old 08-31-2001, 10:04 AM   #6
Member (9 bit)
 
Join Date: Jan 2001
Location: Kalamazoo, MI
Posts: 314
Send a message via ICQ to sdkramer Send a message via AIM to sdkramer Send a message via Yahoo to sdkramer
Yeah. DHCP. But your last comment was over my head could you explain further?

Thanks,

Seth "Cosmo" Kramer
sdkramer is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:56 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0