uname -n
127.0.0.1 mybox.mydomain.com localhost.localdomain localhost mybox
If you have a static IP address, then /etc/hosts is configured as follows:
127.0.0.1 localhost.localdomain localhost 192.168.0.10 mybox.mydomain.com mybox
Setting the Host Name using “hostname”
After updating the /etc/hosts file correctly, the “hostname” command should be run as follows to set your hostname:
hostname mybox.mydomain.com
Checking /etc/HOSTNAME (if present)
You may or may not have the file /etc/HOSTNAME:
mybox.mydomain.com
Checking /etc/sysconfig/network
If you have a static IP address, then /etc/sysconfig/network is configured as follows:
NETWORKING=yes HOSTNAME="mybox.mydomain.com" ...
Checking /proc/sys/kernel/hostname
This is checked with the following command:
cat /proc/sys/kernel/hostname
If you need to set this file, you can either reboot or set it now with the following command:
echo mybox.mydomain.com > /proc/sys/kernel/hostname
: courtesy: cpqlinux.com
4 Responses.
Information on Pink Breast Cancer Bracelets…
[……]I am reading your blog post,Your blog is nice, I want to link it[……]…
I need to ask a small uncomfortable question. My liver is suffering, and the most awful thing is to carry on using this blue pill… The good and free of anxiety period when I was liberally using the little blue pill are gone. I feel scared on every occasion I make a decision to take the pill. I am asking myself every now and then, why there is no such product for women?
) Thus, you are my hope – what to do now?! I am sure that there are tons of men who desire to know exactly the same and nobody’s asking. I like better to stay nameless.
casino en ligne…
[...] can reveal a lot of personal info about them. [...]…
How gibe! Who doesn’t like a puzzle? And, of definitely, it’s human species because of equal to want to be “distinct” than the recess and personalize it with their own artwork. At least, an artistic and artistic child would contemplate that route!
Regards, Joshuah