Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Feb 5, 2020
1 parent e72629b commit 8625356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/hostname.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ In YaST you can edit this hostname on Hostname / DNS tab, hostname field.

## Dynamic system hostname(s) (via DHCP) ##

In modern networks is quite common to use DHCP for configuring workstations. If DHCP server supports that you can even configure hostname for workstation. If you want to use hostname from DHCP server on your workstation, you have to allow it. You have to configure ```DHCLIENT_SET_HOSTNAME``` option. This option can be configured on global level for all interfaces in ```/etc/sysconfig/network/dhcp``` file - this setup is then used as global default for all interfaces without that option explicitly configured. You can also configure this option per interface in the interface's ifcfg file. It is very easy to put the system into wrong state here and you will get unpredictable hostname(s) for your system.
In modern networks is quite common to use DHCP for configuring workstations. If DHCP server supports that you can even configure hostname for its clients. If you want to use hostname from DHCP server on the client, you have to allow it. You have to configure ```DHCLIENT_SET_HOSTNAME``` option on the client. This option can be configured on global level for all interfaces in ```/etc/sysconfig/network/dhcp``` file - this setup is then used as global default for all interfaces without that option explicitly configured. You can also configure this option per interface in the interface's ifcfg file. It is very easy to put the system into wrong state here and you will get unpredictable hostname(s) for your system.

YaST is able to take care of this setup too. If you want to configure ```DHCLIENT_SET_HOSTNAME``` option via YaST then go to ```Hostname / DNS``` tab and set desired configuration in "Set Hostname via DHCP" combobox. Only safe configurations are allowed there. If you pick one of predefined setups there, YaST will set global even local options for you.

Expand Down

0 comments on commit 8625356

Please sign in to comment.