Skip to main content

Thread: How to set multiple hostname aliases?


i'd know if there's way specify list of possible aliases hostname. i'm after specify following in /etc/hosts:

192.168.1.1 my_host
my_host.dnsalias.org my_host
some.other.domain my_host

, when doing "ssh me@my_host" list of hostnames aliased my_host looked in order, connecting first 1 works.

since want use names , not ip addresses, multiple lines in /etc/hosts won't work. write script accomplish same thing, there solution problem?

it's built right format of /etc/hosts:

code:
10.10.10.10    myhostname     myalias1 myalias2 myalias3


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless [all variants] How to set multiple hostname aliases?


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support