Using names instead of IP on LAN
Posted: Mon Dec 01, 2008 3:15 pm
By LAN I mean my home network which sits behind a NAT router.
I have two windows machines and one linux box...each have syste names like:
spectra-desktop
spectra-mobile
spectra-server
Right now each has several services or daemons which other systems might contact occasionally, like SVN for example or FTP or Apache, etc...
Up until now I've used IP addresses cause I was lazy...now my wireless router is acting up and constantly reassign's new IP to each node in the network (there are 4 other computers behind this same NAT which I do no use but others do).
What do I have to do to each computer node (which configs, etc) so that I may refer to the computer names given above and NOT the IP's as this constant changing requires me to then update all my other programs, which is annoying to do year a day never mind once a day or more.
I assume this is possible?
Lets start for example with SSH and putty on my desktop
I connect to 192.168.1.103 which is spectra-server but might be something different in half an hour if I need to reboot the router again.
Ideally I make the computer names available to all on the network and voila...problme solved
I have tried entering spectra-server insteadof IP and I get an error as expected...
Cheers,
Alex
I have two windows machines and one linux box...each have syste names like:
spectra-desktop
spectra-mobile
spectra-server
Right now each has several services or daemons which other systems might contact occasionally, like SVN for example or FTP or Apache, etc...
Up until now I've used IP addresses cause I was lazy...now my wireless router is acting up and constantly reassign's new IP to each node in the network (there are 4 other computers behind this same NAT which I do no use but others do).
What do I have to do to each computer node (which configs, etc) so that I may refer to the computer names given above and NOT the IP's as this constant changing requires me to then update all my other programs, which is annoying to do year a day never mind once a day or more.
I assume this is possible?
Lets start for example with SSH and putty on my desktop
I connect to 192.168.1.103 which is spectra-server but might be something different in half an hour if I need to reboot the router again.
Ideally I make the computer names available to all on the network and voila...problme solved
I have tried entering spectra-server insteadof IP and I get an error as expected...
Cheers,
Alex