Flavio Santes | 36bbd7a | 2016-10-06 00:07:48 -0500 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2016 Intel Corporation |
| 3 | # |
David B. Kinder | ac74d8b | 2017-01-18 17:01:01 -0800 | [diff] [blame] | 4 | # SPDX-License-Identifier: Apache-2.0 |
Flavio Santes | 36bbd7a | 2016-10-06 00:07:48 -0500 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | config DNS_RESOLVER |
| 8 | bool |
| 9 | prompt "DNS resolver" |
| 10 | default n |
| 11 | help |
| 12 | This option enables the DNS client side support for Zephyr |
| 13 | |
Jukka Rissanen | 79cd66f | 2017-03-19 22:13:22 +0200 | [diff] [blame] | 14 | if DNS_RESOLVER |
| 15 | |
Jukka Rissanen | 1865b91 | 2017-09-03 22:08:18 +0300 | [diff] [blame] | 16 | config MDNS_RESOLVER |
| 17 | bool "Enable mDNS support" |
| 18 | default n |
| 19 | help |
| 20 | This option enables multicast DNS client side support. |
| 21 | See RFC 6762 for details. |
| 22 | |
Flavio Santes | 36bbd7a | 2016-10-06 00:07:48 -0500 | [diff] [blame] | 23 | config DNS_RESOLVER_ADDITIONAL_BUF_CTR |
| 24 | int |
| 25 | prompt "Additional DNS buffers" |
Flavio Santes | 36bbd7a | 2016-10-06 00:07:48 -0500 | [diff] [blame] | 26 | default 0 |
| 27 | help |
| 28 | Number of additional buffers available for the DNS resolver. |
| 29 | The DNS resolver requires at least one buffer. This option |
| 30 | enables additional buffers required for multiple concurrent |
| 31 | DNS connections. |
| 32 | |
| 33 | config DNS_RESOLVER_ADDITIONAL_QUERIES |
| 34 | int |
| 35 | prompt "Additional DNS queries" |
Flavio Santes | 36bbd7a | 2016-10-06 00:07:48 -0500 | [diff] [blame] | 36 | range 0 2 |
| 37 | default 1 |
| 38 | help |
| 39 | Number of additional DNS queries that the DNS resolver may |
| 40 | generate when the RR ANSWER only contains CNAME(s). |
| 41 | The maximum value of this variable is constrained to avoid |
| 42 | 'alias loops'. |
Jukka Rissanen | 79cd66f | 2017-03-19 22:13:22 +0200 | [diff] [blame] | 43 | |
| 44 | config DNS_RESOLVER_MAX_SERVERS |
| 45 | int "Number of DNS server addresses" |
Jukka Rissanen | 79cd66f | 2017-03-19 22:13:22 +0200 | [diff] [blame] | 46 | range 1 NET_MAX_CONTEXTS |
| 47 | default 1 |
| 48 | help |
Jukka Rissanen | 8dc0126 | 2017-03-20 16:44:05 +0200 | [diff] [blame] | 49 | Max number of DNS servers that we can connect to. Normally one |
| 50 | DNS server is enough. Each connection to DNS server will use one |
| 51 | network context. |
| 52 | |
| 53 | menuconfig DNS_SERVER_IP_ADDRESSES |
| 54 | bool "Set DNS server IP addresses" |
| 55 | default n |
| 56 | help |
| 57 | Allow DNS IP addresses to be set in config file for |
| 58 | networking applications. |
| 59 | |
| 60 | if DNS_SERVER_IP_ADDRESSES |
| 61 | |
| 62 | config DNS_SERVER1 |
| 63 | string "DNS server 1" |
| 64 | default "" |
| 65 | help |
| 66 | DNS server IP address 1. The address can be either IPv4 or IPv6 |
| 67 | address. An optional port number can be given. |
| 68 | Following syntax is supported: |
| 69 | 192.0.2.1 |
| 70 | 192.0.2.1:5353 |
| 71 | 2001:db8::1 |
| 72 | [2001:db8::1]:5353 |
| 73 | It is not mandatory to use this Kconfig option at all. |
| 74 | The one calling dns_resolve_init() can use this option or not |
| 75 | to populate the server list. If the DNS server addresses are |
| 76 | set here, then we automatically create default DNS context |
| 77 | for the user. |
| 78 | |
| 79 | config DNS_SERVER2 |
| 80 | string "DNS server 2" |
| 81 | default "" |
| 82 | help |
| 83 | See help in "DNS server 1" option. |
| 84 | |
| 85 | config DNS_SERVER3 |
| 86 | string "DNS server 3" |
| 87 | default "" |
| 88 | help |
| 89 | See help in "DNS server 1" option. |
| 90 | |
| 91 | config DNS_SERVER4 |
| 92 | string "DNS server 4" |
| 93 | default "" |
| 94 | help |
| 95 | See help in "DNS server 1" option. |
| 96 | |
| 97 | config DNS_SERVER5 |
| 98 | string "DNS server 5" |
| 99 | default "" |
| 100 | help |
| 101 | See help in "DNS server 1" option. |
| 102 | |
| 103 | endif # DNS_SERVER_IP_ADDRESSES |
| 104 | |
| 105 | config DNS_NUM_CONCUR_QUERIES |
| 106 | int "Number of simultaneous DNS queries per one DNS context" |
| 107 | default 1 |
| 108 | help |
Jukka Rissanen | 79cd66f | 2017-03-19 22:13:22 +0200 | [diff] [blame] | 109 | This defines how many concurrent DNS queries can be generated using |
Jukka Rissanen | 8dc0126 | 2017-03-20 16:44:05 +0200 | [diff] [blame] | 110 | same DNS context. Normally 1 is a good default value. |
Jukka Rissanen | 79cd66f | 2017-03-19 22:13:22 +0200 | [diff] [blame] | 111 | |
| 112 | config NET_DEBUG_DNS_RESOLVE |
| 113 | bool "Debug DNS resolver" |
| 114 | default n |
Paul Sokolovsky | c7da45f | 2017-09-14 19:47:55 +0300 | [diff] [blame] | 115 | default y if NET_LOG_GLOBAL |
Jukka Rissanen | 79cd66f | 2017-03-19 22:13:22 +0200 | [diff] [blame] | 116 | help |
| 117 | Enables DNS resolver code to output debug messages |
| 118 | |
| 119 | endif # DNS_RESOLVER |
Jukka Rissanen | 0257ce3 | 2017-09-21 18:10:50 +0300 | [diff] [blame] | 120 | |
| 121 | config MDNS_RESPONDER |
| 122 | bool "mDNS responder" |
| 123 | default n |
| 124 | select NET_IPV6_MLD if NET_IPV6 |
| 125 | depends on NET_HOSTNAME_ENABLE |
| 126 | help |
| 127 | This option enables the mDNS responder support for Zephyr. |
| 128 | It will listen well-known address ff02::fb and 224.0.0.251. |
| 129 | Currently this only returns IP address information. |
| 130 | You must set CONFIG_NET_HOSTNAME to some meaningful value and |
| 131 | then mDNS will start to respond to <hostname>.local mDNS queries. |
| 132 | See RFC 6762 for more details about mDNS. |
| 133 | |
| 134 | if MDNS_RESPONDER |
| 135 | |
| 136 | config MDNS_RESPONDER_TTL |
| 137 | int "Time-to-Live of returned DNS name" |
| 138 | default 600 |
| 139 | help |
| 140 | DNS answers will use the TTL (in seconds). |
| 141 | |
| 142 | config MDNS_RESPONDER_INIT_PRIO |
| 143 | int "Startup priority for the mDNS responder init" |
| 144 | default 96 |
| 145 | help |
| 146 | Note that if NET_APP_AUTO_INIT is enabled, then this value |
| 147 | should be bigger than its value. |
| 148 | |
| 149 | config NET_DEBUG_MDNS_RESPONDER |
| 150 | bool "Debug mDNS responder" |
| 151 | default n |
| 152 | default y if NET_LOG_GLOBAL |
| 153 | help |
| 154 | Enables mDNS responder code to output debug messages |
| 155 | |
| 156 | config MDNS_RESOLVER_ADDITIONAL_BUF_CTR |
| 157 | int |
| 158 | prompt "Additional DNS buffers" |
| 159 | default 0 |
| 160 | help |
| 161 | Number of additional buffers available for the mDNS responder. |
| 162 | |
| 163 | endif # MDNS_RESPONDER |