samples: net: dns: Add LLMNR client support to DNS resolver
By default the LLMNR is disabled in this sample. You can enable it by setting CONFIG_LLMNR_RESOLVER=y Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
837ed14a0d
commit
f47151513c
3 changed files with 21 additions and 4 deletions
|
@ -17,6 +17,10 @@ The multicast DNS (mDNS) client resolver support can be enabled by setting
|
||||||
CONFIG_MDNS_RESOLVER Kconfig variable.
|
CONFIG_MDNS_RESOLVER Kconfig variable.
|
||||||
See https://tools.ietf.org/html/rfc6762 for more details about mDNS.
|
See https://tools.ietf.org/html/rfc6762 for more details about mDNS.
|
||||||
|
|
||||||
|
The link-local multicast name resolution (LLMNR) client resolver support can be
|
||||||
|
enabled by setting the :option:`CONFIG_LLMNR_RESOLVER` Kconfig option.
|
||||||
|
See https://tools.ietf.org/html/rfc4795 for more details about LLMNR.
|
||||||
|
|
||||||
For more information about DNS configuration variables, see:
|
For more information about DNS configuration variables, see:
|
||||||
:file:`subsys/net/lib/dns/Kconfig`. The DNS resolver API can be found at
|
:file:`subsys/net/lib/dns/Kconfig`. The DNS resolver API can be found at
|
||||||
:file:`include/net/dns_resolve.h`. The sample code can be found at:
|
:file:`include/net/dns_resolve.h`. The sample code can be found at:
|
||||||
|
|
|
@ -34,6 +34,8 @@ CONFIG_DNS_RESOLVER_ADDITIONAL_BUF_CTR=5
|
||||||
CONFIG_DNS_RESOLVER_ADDITIONAL_QUERIES=2
|
CONFIG_DNS_RESOLVER_ADDITIONAL_QUERIES=2
|
||||||
# Enable mDNS support
|
# Enable mDNS support
|
||||||
CONFIG_MDNS_RESOLVER=y
|
CONFIG_MDNS_RESOLVER=y
|
||||||
|
# Enable LLMNR support
|
||||||
|
CONFIG_LLMNR_RESOLVER=n
|
||||||
|
|
||||||
CONFIG_DNS_RESOLVER_MAX_SERVERS=2
|
CONFIG_DNS_RESOLVER_MAX_SERVERS=2
|
||||||
CONFIG_DNS_SERVER_IP_ADDRESSES=y
|
CONFIG_DNS_SERVER_IP_ADDRESSES=y
|
||||||
|
|
|
@ -1,13 +1,24 @@
|
||||||
sample:
|
|
||||||
description: DNS resolver sample application
|
|
||||||
name: DNS Resolver
|
|
||||||
common:
|
common:
|
||||||
harness: net
|
harness: net
|
||||||
depends_on: netif
|
depends_on: netif
|
||||||
tags: net dns
|
tags: net dns
|
||||||
|
sample:
|
||||||
|
description: DNS resolver, mDNS and LLMNR responder
|
||||||
|
name: DNS resolver and responder sample application
|
||||||
tests:
|
tests:
|
||||||
test:
|
test_mdns:
|
||||||
extra_configs:
|
extra_configs:
|
||||||
|
- CONFIG_MDNS_RESOLVER=y
|
||||||
|
- CONFIG_LLMNR_RESOLVER=n
|
||||||
- CONFIG_NET_DHCPV4=y
|
- CONFIG_NET_DHCPV4=y
|
||||||
- CONFIG_NET_DEBUG_APP=y
|
- CONFIG_NET_DEBUG_APP=y
|
||||||
- CONFIG_SYS_LOG_NET_LEVEL=4
|
- CONFIG_SYS_LOG_NET_LEVEL=4
|
||||||
|
tags: mdns
|
||||||
|
test_llmnr:
|
||||||
|
extra_configs:
|
||||||
|
- CONFIG_MDNS_RESOLVER=n
|
||||||
|
- CONFIG_LLMNR_RESOLVER=y
|
||||||
|
- CONFIG_NET_DHCPV4=y
|
||||||
|
- CONFIG_NET_DEBUG_APP=y
|
||||||
|
- CONFIG_SYS_LOG_NET_LEVEL=4
|
||||||
|
tags: llmnr
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue