Aliases via the ‘hosts’ file
If you find yourself writing an internet address often, you can alias it to a simpler name. For example, I telnet quite often to a server at my old university: mumrik.nada.kth.se. I have aliased this to “mumrik”, so instead of having to type “telnet mumrik.nada.kth.se”, I can now type “telnet mumrik”. This alias will work with any program using internet addresses, NetPositive too, though it may be easier to make a bookmark there. Here is how you do it:
Edit the file /boot/beos/etc/hosts, create it if it isn’t there already.
Add entries with this format:
184.108.40.206 machine.domain.top alias
For example, my mumrik alias looks like this:
I think you must have an endline after every entry, or it won’t be recognized.
Posted in Networking