The latest development version of this page may be more current than this released 1.14.1 version.
CONFIG_NET_HOSTNAME

The hostname of this device

Type: string

Help

The string should be a valid hostname.

Direct dependencies

NET_HOSTNAME_ENABLE && NETWORKING

(Includes any dependencies from if’s and menus.)

Defaults

Kconfig definition

At subsys/net/Kconfig.hostname:17

Included via Kconfig:10Kconfig.zephyr:39subsys/Kconfig:24subsys/net/Kconfig:78

Menu path: (top menu) → Networking

config NET_HOSTNAME
    string
    prompt "The hostname of this device" if NET_HOSTNAME_ENABLE && NETWORKING
    default "zephyr" if NET_HOSTNAME_ENABLE && NETWORKING
    depends on NET_HOSTNAME_ENABLE && NETWORKING
    help
      The string should be a valid hostname.

(Definitions include propagated dependencies, including from if’s and menus.)