hostname

hostname — Hostname settings

Properties

Table 86. 

Key Name Value Type Default Value Value Description
from-dhcp
NMTernary (int32)
Whether the system hostname can be determined from DHCP on this connection. When set to -1 (default), the value from global configuration is used. If the property doesn't have a value in the global configuration, NetworkManager assumes the value to be 1 (true).
from-dns-lookup
NMTernary (int32)
Whether the system hostname can be determined from reverse DNS lookup of addresses on this device. When set to -1 (default), the value from global configuration is used. If the property doesn't have a value in the global configuration, NetworkManager assumes the value to be 1 (true).
only-from-default
NMTernary (int32)
If set to 1 (true), NetworkManager attempts to get the hostname via DHCPv4/DHCPv6 or reverse DNS lookup on this device only when the device has the default route for the given address family (IPv4/IPv6). If set to 0 (false), the hostname can be set from this device even if it doesn't have the default route. When set to -1 (default), the value from global configuration is used. If the property doesn't have a value in the global configuration, NetworkManager assumes the value to be 0 (false).
priority
int32
0
The relative priority of this connection to determine the system hostname. A lower numerical value is better (higher priority). A connection with higher priority is considered before connections with lower priority. If the value is zero, it can be overridden by a global value from NetworkManager configuration. If the property doesn't have a value in the global configuration, the value is assumed to be 100. Negative values have the special effect of excluding other connections with a greater numerical priority value; so in presence of at least one negative priority, only connections with the lowest priority value will be used to determine the hostname.