CONFIG_NET_SOCKETS_DNS_TIMEOUT

Timeout value in milliseconds for DNS queries

Type: int

Help

This variable specifies time in milliseconds after which DNS query is considered timeout. Minimum timeout is 1 second and maximum timeout is 5 min.

Direct dependencies

DNS_RESOLVER && NET_SOCKETS && NETWORKING

(Includes any dependencies from ifs and menus.)

Default

  • 2000

Kconfig definition

At subsys/net/lib/sockets/Kconfig:39

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:22subsys/net/Kconfig:82subsys/net/lib/Kconfig:28

Menu path: (Top) → Networking → Link layer and IP networking support → Network Libraries → BSD Sockets compatible API

config NET_SOCKETS_DNS_TIMEOUT
    int "Timeout value in milliseconds for DNS queries"
    range 1000 300000
    default 2000
    depends on DNS_RESOLVER && NET_SOCKETS && NETWORKING
    help
      This variable specifies time in milliseconds after which DNS
      query is considered timeout. Minimum timeout is 1 second and
      maximum timeout is 5 min.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)