LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   where is the file in which i can perm change my hostname (https://www.linuxquestions.org/questions/mandriva-30/where-is-the-file-in-which-i-can-perm-change-my-hostname-286412/)

hirts123 02-04-2005 09:37 PM

where is the file in which i can perm change my hostname
 
I need to know the file in mandrake 10 thats allows me to change my hostname forever.
I asked this question a couple of days ago but i cant seem to find the thread, and i know its in the network file but i cant remember what directory thats in.

Could someone tell me ?

michaelk 02-04-2005 10:18 PM

/etc/sysconfig/network

Electronkz 02-04-2005 10:23 PM

Here is your thread http://www.linuxquestions.org/questi...hange+hostname


This is how you do it in Fedora, It may be similar in other SYS-V linux.
First edit: /etc/sysconfig/network and change the HOSTNAME to whatever you want. Now edit: /etc/hosts and add the new name in the 127.0.0.1 line.

amosf 02-05-2005 01:25 AM

run the command as root

hostname "name-of-host-you-want-to-use"

sgrayban 02-05-2005 02:37 AM

man hostname <<----- answers his question

hirts123 02-05-2005 01:28 PM

Quote:

Originally posted by Electronkz
Here is your thread http://www.linuxquestions.org/questi...hange+hostname


This is how you do it in Fedora, It may be similar in other SYS-V linux.
First edit: /etc/sysconfig/network and change the HOSTNAME to whatever you want. Now edit: /etc/hosts and add the new name in the 127.0.0.1 line.

I edited the etc/sys-config/network file and everything is doin fine, but i have a question ? What would be the purpose of the etc/hosts file being altered?

hirts123 02-05-2005 03:01 PM

thanks for all help u guys I loving my linux box!!!!

nafan 02-05-2005 03:10 PM

Putting your hostname in /etc/hosts against 127.0.0.1 means that you can refer to your computer using 'mybigcomputer' instead of 127.0.0.1, and your computer can always find itself.


All times are GMT -5. The time now is 09:05 AM.