dhcp_send_hostname_v2


Description:

[ NoAccessorMethod ]
[ Version ( since = "1.52" ) ]
public int dhcp_send_hostname_v2 { get; set; }

If true, a hostname is sent to the DHCP server when acquiring a lease.

Some DHCP servers use this hostname to update DNS databases, essentially providing a static hostname for the computer. If the dhcp_hostname property is null and this property is true, the current persistent hostname of the computer is sent.

The default value is nm_ternary_default. In this case the global value from NetworkManager configuration is looked up. If it's not set, the value from dhcp_send_hostname, which defaults to true, is used for backwards compatibility. In the future this will change and, in absence of a global default, it will always fallback to true.