paladin-zero Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/117955996341a1a00cc078f.gif)
Joined: 19 May 2004 Posts: 322
|
Posted: Tue Apr 12, 2005 8:55 pm Post subject: alias in /etc/hosts not respected |
|
|
My work uses dynamically assigned ip addresses, so I use my wireless routers dynamically assigned addresses at home as well. At home, I wanted to be able to use ssh without having to figure out what each computer's dynamic ip is, so I assigned an alias in /etc/hosts like so:
127.0.0.1 leibniz.ether leibniz localhost
192.168.2.100 leibniz.ether leibniz
192.168.2.101 quicksilver.ether quicksilver
which seems to work just the way I wanted it to on my desktop computer. I did the same on my laptop, but it doesnt work, it seems that the laptop rejects its second alias, and only keeps the dynamic address. Ive confirmed this with " $ ip addr"
Could anyone offer a suggestion: why would the second alias be rejected? Is there a better way to do this? |
|