Re: [newbie] /etc/hosts
On Sunday 13 March 2005 05:53, SnapafunFrank wrote: Some time ago I got this working OK and only recently discovered that the /etc/hosts file has been re-written ~ possible still more stuff left over from the corruption of my .ICEauthority. Here's what I posted to assist someone at the time in regards to OOo opening slowly: Quote: mine reads: 127.0.0.1 localhost.localdomain localhost 127.0.0.1 Snapafun.localdomainlocalhost 127.0.0.1 www.snapafun.conSnapafun 127.0.0.1 www.snapafun.conlocalhost Now that's somewhat overkill and needs a clean up but it works. End Quote: Since this time I have installed and have running at present ADSL via eth0. [ Dynamic with my ISP ] I seem to recall that another entry was required here for that ~ anyone know what that is supposed to be ? Hopefully this exercise will speed my system up to what it was before the .ICEauthority corruption. /etc/hosts has nothing to do with .ICEauthority You do not need to add anything when you go to ADSL The /etc/hosts file is simply a list to match host names to IP addresses. You did not need 4 separate lines, you could have just put 127.0.0.1 alias1 alias2 alias3 alias4 alias5 and so on... When you refer to a host name in for example a browser url, your computer will check to see if it is the hosts table before it bothers to ask a DNS server what the IP address of that host is. So if you try to browse to http://www.snapafun.con then your computer will immediately translate that as http://127.0.0.1 Thats all the /etc/hosts file does. You would most commonly use the hosts table to identify the other computers in a small local network with static addressing. derek -- www.jennings.homelinux.net http://twiki.mdklinuxfaq.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] /etc/hosts
Derek Jennings wrote: On Sunday 13 March 2005 05:53, SnapafunFrank wrote: Some time ago I got this working OK and only recently discovered that the /etc/hosts file has been re-written ~ possible still more stuff left over from the corruption of my .ICEauthority. Here's what I posted to assist someone at the time in regards to OOo opening slowly: Quote: mine reads: 127.0.0.1 localhost.localdomain localhost 127.0.0.1 Snapafun.localdomainlocalhost 127.0.0.1 www.snapafun.conSnapafun 127.0.0.1 www.snapafun.conlocalhost Now that's somewhat overkill and needs a clean up but it works. End Quote: Since this time I have installed and have running at present ADSL via eth0. [ Dynamic with my ISP ] I seem to recall that another entry was required here for that ~ anyone know what that is supposed to be ? Hopefully this exercise will speed my system up to what it was before the .ICEauthority corruption. /etc/hosts has nothing to do with .ICEauthority You do not need to add anything when you go to ADSL The /etc/hosts file is simply a list to match host names to IP addresses. You did not need 4 separate lines, you could have just put 127.0.0.1 alias1 alias2 alias3 alias4 alias5 and so on... When you refer to a host name in for example a browser url, your computer will check to see if it is the hosts table before it bothers to ask a DNS server what the IP address of that host is. So if you try to browse to http://www.snapafun.con then your computer will immediately translate that as http://127.0.0.1 Thats all the /etc/hosts file does. You would most commonly use the hosts table to identify the other computers in a small local network with static addressing. derek Thanks derek ~ in a nutshell and well understood ~ really simple really when it's explained like this ~ greatly appreciated. -- Newbie Seeking USER_FUNCTIONALITY always! Regards SnapafunFrank Big or small, a challenge requires the same commitment to resolve. Registered Linux User # 324213 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
[newbie] /etc/hosts
Some time ago I got this working OK and only recently discovered that the /etc/hosts file has been re-written ~ possible still more stuff left over from the corruption of my .ICEauthority. Here's what I posted to assist someone at the time in regards to OOo opening slowly: Quote: mine reads: 127.0.0.1 localhost.localdomain localhost 127.0.0.1 Snapafun.localdomainlocalhost 127.0.0.1 www.snapafun.conSnapafun 127.0.0.1 www.snapafun.conlocalhost Now that's somewhat overkill and needs a clean up but it works. End Quote: Since this time I have installed and have running at present ADSL via eth0. [ Dynamic with my ISP ] I seem to recall that another entry was required here for that ~ anyone know what that is supposed to be ? Hopefully this exercise will speed my system up to what it was before the .ICEauthority corruption. -- Newbie Seeking USER_FUNCTIONALITY always! Regards SnapafunFrank Big or small, a challenge requires the same commitment to resolve. Registered Linux User # 324213 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] /etc/hosts
tor 2002-01-24 klockan 08.16 skrev Brian Parish: I don't use cable access (i wish!) but from what I have read (on this I went from a 14.4 modem (my 56k one got toasted) to cable a couple of years ago. It was a sweet. If everything works with this hostname set and you are in fact using DHCP to get your address, you could look at /etc/sysconfig/network In here is a line (probably) which reads DHCP_HOSTNAME=xyz It's all there. I wonder if this is the problem. Do I have this backwards, I call my system delirium, that is localhost = delirium and this name is what shows up for DHCP_HOSTNAME. Do both my loopback and eth0 get the same name? So, when I replace localhost in /etc/hosts for delirium there is a conflict that gets resolved by resetting that entry? Network stuff always confuses me. Thanks, Bo Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] /etc/hosts
Maybe it's time to contact your cable provider and ask them how you should be set up. I'm sure that in a civilised place like Sveria, there should be inga probleme with asking support for linux configs. I sympathise with the confusion - it's probably apparent that I suffer from the same symptoms. lycka till Brian On Thu, 2002-01-24 at 19:28, Bo Rosén wrote: tor 2002-01-24 klockan 08.16 skrev Brian Parish: I don't use cable access (i wish!) but from what I have read (on this I went from a 14.4 modem (my 56k one got toasted) to cable a couple of years ago. It was a sweet. If everything works with this hostname set and you are in fact using DHCP to get your address, you could look at /etc/sysconfig/network In here is a line (probably) which reads DHCP_HOSTNAME=xyz It's all there. I wonder if this is the problem. Do I have this backwards, I call my system delirium, that is localhost = delirium and this name is what shows up for DHCP_HOSTNAME. Do both my loopback and eth0 get the same name? So, when I replace localhost in /etc/hosts for delirium there is a conflict that gets resolved by resetting that entry? Network stuff always confuses me. Thanks, Bo Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] /etc/hosts
tor 2002-01-24 klockan 10.10 skrev Brian Parish: should be set up. I'm sure that in a civilised place like Sveria, there should be inga probleme with asking support for linux configs. Sverige not Sveria :-) Yes, if I can't figure this out I'll talk to them. They have great support actually. Funny thing is I had no probel with Red Hat, no shadow on Mandrake, I'm just confused. lycka till Tack! And thanks for trying, Ciao, Bo Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] /etc/hosts
Bo Rosén wrote: I have a strange problem with my host name. When I installed 8.1 the other day I specified my host name, and it shows up in the Mandrake controll center, netconf etc. It does not show up in /etc/hosts (only the usual localhost...). When I log into Gnome it complains that it can't find the interent address for my system and that this could be solved by entering the host name in /etc/hosts. I do so (and have done so previously in Red Hat), but the next time I start the computer, mandrake resets /etc/hosts? Why, and what do I do? Are you using DHCP? (I might have the acronym wrong, letters interchanged or whatever.) I recall seeing somewhere that if you use DHCP, things like host name may get reset every time DHCP runs (like when your machine boots up). As I understood the correction, you need to set the host name and similar things (DNS server addresses) in the DHCP server. Just sort of a shot in the dark. Randy Kramer Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] /etc/hosts
ons 2002-01-23 klockan 23.39 skrev Randy Kramer: Hi, Are you using DHCP? (I might have the acronym wrong, letters interchanged or whatever.) The server you mean? No, I'm not supposed to anyway and it doesn't show up under services and daemons in the Control Center, unless it has some strange name. One thing though. I have a internet accsess via cable modem, which works fine, but the Network and Internet bit in CC shows me as having an Internet interface and a lan. I only have one network adaptor in the machine. Thanks, Bo Rosén I recall seeing somewhere that if you use DHCP, things like host name may get reset every time DHCP runs (like when your machine boots up). As I understood the correction, you need to set the host name and similar things (DNS server addresses) in the DHCP server. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] /etc/hosts
Bo, I don't use cable access (i wish!) but from what I have read (on this list mostly) using cable normally means that you would be getting an IP address via DHCP from your cable provider each time you boot. If this is the case, you will get different IP addresses potentially each time, so anything written for a given IP address in hosts would become invalid. Try the following: In a console window type: hostname without the quotes. This will tell you what your hostname is. If it's not set, you can set it by saying: hostname xyz where xyz the name you want. If everything works with this hostname set and you are in fact using DHCP to get your address, you could look at /etc/sysconfig/network In here is a line (probably) which reads DHCP_HOSTNAME=xyz If it's not there, or there is no hostname specified, you could try adding it there. I think this is where it's picked up from when DHCP issues the address. Let us know how you go. cheers Brian On Thu, 2002-01-24 at 17:41, Bo Rosén wrote: ons 2002-01-23 klockan 23.39 skrev Randy Kramer: Hi, Are you using DHCP? (I might have the acronym wrong, letters interchanged or whatever.) The server you mean? No, I'm not supposed to anyway and it doesn't show up under services and daemons in the Control Center, unless it has some strange name. One thing though. I have a internet accsess via cable modem, which works fine, but the Network and Internet bit in CC shows me as having an Internet interface and a lan. I only have one network adaptor in the machine. Thanks, Bo Rosén I recall seeing somewhere that if you use DHCP, things like host name may get reset every time DHCP runs (like when your machine boots up). As I understood the correction, you need to set the host name and similar things (DNS server addresses) in the DHCP server. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com