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

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 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

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.

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: Don´t forget to run the script SuSEconfig whenever you change any file in the /etc/sysconfig directory hierarchy.

Hope this help.