Gjsify LogoGjsify Logo

Interface SettingHostname_ConstructProps

Hierarchy

Index

Properties

from_dhcp?: Ternary

Whether the system hostname can be determined from DHCP on this connection.

When set to %NM_TERNARY_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 %NM_TERNARY_TRUE.

from_dns_lookup?: Ternary

Whether the system hostname can be determined from reverse DNS lookup of addresses on this device.

When set to %NM_TERNARY_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 %NM_TERNARY_TRUE.

only_from_default?: Ternary

If set to %NM_TERNARY_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 %NM_TERNARY_FALSE, the hostname can be set from this device even if it doesn't have the default route.

When set to %NM_TERNARY_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 %NM_TERNARY_FALSE.

priority?: number

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.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method