Results 1 to 5 of 5

Thread: changing hostname

  1. #1

    Default changing hostname

    hi,

    how do i change my host and domainname? when i do that with hostname after a rebbot i get the old hostname.

    greetz

  2. #2
    Join Date
    Jun 2008
    Location
    where I am is where I am
    Posts
    1,190

    Default Re: changing hostname

    Yast>Network Devices> Hostname Tab
    1.change hostname & domain
    2.Uncheck change hostname via DHCP
    3.Check write hostname to /etc/hosts
    4. click finish
    I'm just a curious cat
    My 64 bit: CPU AMD RYZEN 9 3900X 12 Core GPU MSI Radeon RX5600 XT
    MOTHERBOARD GIGABYTE B550 AORUS PRO AC
    Opensuse Tumbleweed Plasma 5

  3. #3

    Default Re: changing hostname

    i dont have a gui. i only have yast in konsole.

    these points i cant find:

    2.Uncheck change hostname via DHCP
    3.Check write hostname to /etc/hosts

    greetz

  4. #4

    Default Re: changing hostname

    In console mode it's yast > Network Devices > Network Card > Global Options > Hostname/DNS.

    You need to be aware that some applications may need configuring too. I'm inexperienced in Linux, but one I know of is mythtv. There are probably others.

  5. #5
    Join Date
    Jul 2008
    Location
    SPAIN
    Posts
    132

    Default Re: changing hostname

    You change your hostname in the file /etc/HOSTNAME.

    Now, to modify the way a given network interface gets its IP configuration data, you go to /etc/network and look for the file having the configuration data.
    For example if you have only one nic, it would probably be called something like ifcfg-eth-id-xx:x:xx:xx:xx:xx

    xx:x:xx:xx:xx:xx is the MAC address of your nic.

    Edit this file and change the parameters there in.
    For the nic to have its IP conf data statically assigned you will have to fill at least the parameters:

    BOOTPROTO='static'

    IPADDR='your-ip-address'
    NETMASK='your-ip-address-network-mask'

    'your-ip-address' is the Ip address you want your nic to be configured to.

    'your-ip-address-network-mask' is the network mask of the network subnet the nic is connected to.

    Notice: Dont forget to run the script SuSEconfig whenever you change any file in the /etc/sysconfig directory hierarchy.

    Hope this help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •