Changing the local network name

I performed a fresh installation of Leap 42.2. One of the new features is that the local network name is no longer the HOSTNAME.

In the network adapter setup, I have assigned the name “sma-station14l” to the host. In the past this name was also used internally for other networks such as bluetooth. Now it returns is (rather random) name of “linux-nccu-suse”.

The file </etc/hostname> contains that name.

Is there any consequence to changing </etc/hostname> to match the ethernet network name?

Hi
You need to change via YaST Network Services Hostname/DNS tab. For bluetooth from memory it’s down in file /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/config needs a manual edit. You can also use hciconfig hci0 name ‘yourname’ but not sure it carries over a reboot. It may also when you do set the name via Network Settings it may use that…

In LEAP (both 42.1 and 42.2) the YAST module you want to open is “Network Settings”
The tab just to the right of the default tab that opens should be the “Hostname/DNS” tab.
The top two fields are first the Hostname to the left, and then the “domain” field to the right.

The “domain” field is where you enter either a Domain or a Workgroup name, aka what you’re calling the Network name.

Then, do <not> check the first checkbox below these two fields, if checked then the settings you make are over-ridden by whatever DHCP might assign.
Do check the second checkbox which creates a Hosts file entry that assigns the Hostname and domain name to a localhost address.

HTH,
TSU