blob: 79a05c4574210a679fd52759ee916813718f54ba [file] [log] [blame]
Flavio Santes36bbd7a2016-10-06 00:07:48 -05001#
2# Copyright (c) 2016 Intel Corporation
3#
David B. Kinderac74d8b2017-01-18 17:01:01 -08004# SPDX-License-Identifier: Apache-2.0
Flavio Santes36bbd7a2016-10-06 00:07:48 -05005#
6
7config 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 Rissanen79cd66f2017-03-19 22:13:22 +020014if DNS_RESOLVER
15
Jukka Rissanen1865b912017-09-03 22:08:18 +030016config 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 Santes36bbd7a2016-10-06 00:07:48 -050023config DNS_RESOLVER_ADDITIONAL_BUF_CTR
24 int
25 prompt "Additional DNS buffers"
Flavio Santes36bbd7a2016-10-06 00:07:48 -050026 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
33config DNS_RESOLVER_ADDITIONAL_QUERIES
34 int
35 prompt "Additional DNS queries"
Flavio Santes36bbd7a2016-10-06 00:07:48 -050036 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 Rissanen79cd66f2017-03-19 22:13:22 +020043
44config DNS_RESOLVER_MAX_SERVERS
45 int "Number of DNS server addresses"
Jukka Rissanen79cd66f2017-03-19 22:13:22 +020046 range 1 NET_MAX_CONTEXTS
47 default 1
48 help
Jukka Rissanen8dc01262017-03-20 16:44:05 +020049 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
53menuconfig 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
60if DNS_SERVER_IP_ADDRESSES
61
62config 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
79config DNS_SERVER2
80 string "DNS server 2"
81 default ""
82 help
83 See help in "DNS server 1" option.
84
85config DNS_SERVER3
86 string "DNS server 3"
87 default ""
88 help
89 See help in "DNS server 1" option.
90
91config DNS_SERVER4
92 string "DNS server 4"
93 default ""
94 help
95 See help in "DNS server 1" option.
96
97config DNS_SERVER5
98 string "DNS server 5"
99 default ""
100 help
101 See help in "DNS server 1" option.
102
103endif # DNS_SERVER_IP_ADDRESSES
104
105config DNS_NUM_CONCUR_QUERIES
106 int "Number of simultaneous DNS queries per one DNS context"
107 default 1
108 help
Jukka Rissanen79cd66f2017-03-19 22:13:22 +0200109 This defines how many concurrent DNS queries can be generated using
Jukka Rissanen8dc01262017-03-20 16:44:05 +0200110 same DNS context. Normally 1 is a good default value.
Jukka Rissanen79cd66f2017-03-19 22:13:22 +0200111
112config NET_DEBUG_DNS_RESOLVE
113 bool "Debug DNS resolver"
114 default n
Paul Sokolovskyc7da45f2017-09-14 19:47:55 +0300115 default y if NET_LOG_GLOBAL
Jukka Rissanen79cd66f2017-03-19 22:13:22 +0200116 help
117 Enables DNS resolver code to output debug messages
118
119endif # DNS_RESOLVER
Jukka Rissanen0257ce32017-09-21 18:10:50 +0300120
121config 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
134if MDNS_RESPONDER
135
136config 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
142config 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
149config 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
156config 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
163endif # MDNS_RESPONDER