Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alias in /etc/hosts not respected
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
paladin-zero
Guru
Guru


Joined: 19 May 2004
Posts: 322

PostPosted: Tue Apr 12, 2005 8:55 pm    Post subject: alias in /etc/hosts not respected Reply with quote

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?
Back to top
View user's profile Send private message
christsong84
Veteran
Veteran


Joined: 06 Apr 2003
Posts: 1003
Location: GMT-8 (Spokane)

PostPosted: Tue Apr 12, 2005 8:59 pm    Post subject: Reply with quote

poke around but I'm sure there's a setting in dhcpcd for not setting the hostname to the dynamic one
_________________
while(true) {self.input(sugar);} :twisted:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum