I wanted to get rid of typing the IP-Adress everytime I want to ssh to another PC in my LAN. Accidently I found this Solution (The Observatory - Local Hostname Resolution):
host:# cp /etc/nsswitch.conf /etc/nsswitch.conf.org
host:# cp /etc/nsswitch.dns /etc/nsswitch.conf
host:#
host:# svcadm enable /network/dns/multicast
Now you can use the Hostname and .local to ssh or whatever to a PC in your LAN.
$ ssh myhost.local
Keine Kommentare:
Kommentar veröffentlichen