I'm using SuSE 8.2 Professional, and whenever I start the computer gets the IP address "127.0.0.2" on the working network address, that already has a DHCP address attached. There is an option in Yast, that allows the hostname to be changed via DHCP, but I'm using a simple router box for DHCP that doesn't have such nifty features. What I'd like, is for the IP address in /etc/hosts to change to the correct IP for the hostname and not set it to the second localhost IP (127.0.0.2). Anybody know a way to make this possible?
Örn Hansen wrote:
I'm using SuSE 8.2 Professional, and whenever I start the computer gets the IP address "127.0.0.2" on the working network address, that already has a DHCP address attached. There is an option in Yast, that allows the hostname to be changed via DHCP, but I'm using a simple router box for DHCP that doesn't have such nifty features. What I'd like, is for the IP address in /etc/hosts to change to the correct IP for the hostname and not set it to the second localhost IP (127.0.0.2). Anybody know a way to make this possible?
I'm not sure if I understand your problem correctly, but I would just set localhost to 127.0.0.1 manually, and switch of the option that sets the hostname by DHCP. It is possible to have multiple entries in /etc/hosts that refer to the same machine. So you might have somthing like: 127.0.0.1 localhost # This is the loopback address 192.168.0.1 mymachine #This address could be set by DHCP from your router if you want , it's a reference for you local network 202.72.180.181 www.mydomain.com # This address is for your external interface which you might set to a domain name if you own one. You might want the IP number of the network card connected to the router running your local network to be set by DHCP, but it doesn't sound like you want a domain name set in the way. I think this is mostly used for thin client setups and the like. I'm no guru, but I hope that helps; sol -- ============================== Sol Hanna solATautonomonDOTnet
participants (2)
-
Sol
-
Örn Hansen