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

DNS server 1

Type: string

Help

DNS server IP address 1. The address can be either IPv4 or IPv6 address. An optional port number can be given. Following syntax is supported: 192.0.2.1 192.0.2.1:5353 2001:db8::1 [2001:db8::1]:5353 It is not mandatory to use this Kconfig option at all. The one calling dns_resolve_init() can use this option or not to populate the server list. If the DNS server addresses are set here, then we automatically create default DNS context for the user.

Direct dependencies

DNS_SERVER_IP_ADDRESSES && DNS_RESOLVER && NETWORKING

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

Defaults

No defaults. Implicitly defaults to the empty string.

Kconfig definition

At subsys/net/lib/dns/Kconfig:66

Included via Kconfig:10Kconfig.zephyr:39subsys/Kconfig:24subsys/net/Kconfig:84subsys/net/lib/Kconfig:11

Menu path: (top menu) → Networking → Network Protocols → Set DNS server IP addresses

config DNS_SERVER1
    string
    prompt "DNS server 1" if DNS_SERVER_IP_ADDRESSES && DNS_RESOLVER && NETWORKING
    depends on DNS_SERVER_IP_ADDRESSES && DNS_RESOLVER && NETWORKING
    help
      DNS server IP address 1. The address can be either IPv4 or IPv6
      address. An optional port number can be given.
      Following syntax is supported:
      192.0.2.1
      192.0.2.1:5353
      2001:db8::1
      [2001:db8::1]:5353
      It is not mandatory to use this Kconfig option at all.
      The one calling dns_resolve_init() can use this option or not
      to populate the server list. If the DNS server addresses are
      set here, then we automatically create default DNS context
      for the user.

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