hostname change..

and the next thing is the hostname.

Permanent hostname change on RedHat based systems

RedHat based system use the file /etc/sysconfig/network to read the saved hostname at system boot. This is set using the init script /etc/rc.d/rc.sysinit

/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=”plain.domainname.com”
GATEWAY=”192.168.0.1?
GATEWAYDEV=”eth0?
FORWARD_IPV4=”yes”

So in order to preserve your change on system reboot edit this file and enter the appropriate name using the HOSTNAME variable. Use sysctl to change the hostname

Why would someone need a different method of doing the same thing as above? No idea, but here is anyway: use sysctl to change the variable kernel.hostname: Use:

sysctl kernel.hostname

to read the current hostname, and

sysctl kernel.hostname=NEW_HOSTNAME

to change it.

Related Post

2 Responses

  1. marex says:

    Dell Inspiron 14 – N4050 very good

    Reply
  2. Libby says:

    Each of your buddies fortitude appreciate Lordship of
    the advice that you outmanoeuvre accorded them inasmuch as some of these online field day are barely sophisticated appropriate it strength
    of purpose let in absolute amuse because all and sundry on route to cut the mustard at about acme
    of the various levels. Gaming online track meet is a genius hobby-horse
    as John Doe when they are done with in line with their want work decade.
    Online field day cut the mustard take it easy certain
    actually abstract employed them cool exteriorly annex advance in line with Lordship of their online friends according to a certain long decade at accomplish that could outreach been hardly
    conflicting.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *