Lines Matching full:dns

2  * @brief DNS resolving library
4 * An API for applications to resolve a DNS name.
26 * @brief DNS resolving library
27 * @defgroup dns_resolve DNS Resolve Library
35 * DNS query type enum
149 /** @brief What is the type of the socket given to DNS socket dispatcher,
162 * @brief Callback used when the DNS socket dispatcher has found a handler for
165 * @param ctx DNS resolve or mDNS responder context.
167 * @param addr Socket address of the peer that sent the DNS packet.
169 * @param buf Pointer to data buffer containing the DNS message.
178 /** @brief DNS socket dispatcher context. */
184 /** DNS resolver context that contains information needed by the
197 /** DNS socket dispatcher callback is called for incoming traffic */
225 * @brief Register a DNS dispatcher socket. Each code wanting to use
229 * @param ctx DNS socket dispatcher context.
236 * @brief Unregister a DNS dispatcher socket. Called when the
240 * @param ctx DNS socket dispatcher context.
304 * @brief DNS resolve callback
306 * @details The DNS resolve callback is called after a successful
307 * DNS resolving. The resolver can call this callback multiple times, one
336 * DNS resolve context structure.
339 /** List of configured DNS servers */
341 /** DNS server information */
344 /** Connection to the DNS server */
347 /** Network interface index if the DNS resolving should be done
359 /** Dispatch DNS data between resolver and responder */
418 /** DNS id of this query */
421 /** Hash of the DNS name + query type we are querying.
424 * setting the DNS id to 0, which means that the id alone
435 * @brief Init DNS resolving context.
437 * @details This function sets the DNS server address and initializes the
438 * DNS context that is used by the actual resolver. DNS server addresses
440 * Note that the recommended way to resolve DNS names is to use
442 * call dns_resolve_init() as the DNS servers are already setup by the system.
444 * @param ctx DNS context. If the context variable is allocated from
448 * @param dns_servers_str DNS server addresses using textual strings. The
455 * @param dns_servers_sa DNS server addresses as struct sockaddr. The array
466 * @brief Init DNS resolving context with default Kconfig options.
468 * @param ctx DNS context.
475 * @brief Close DNS resolving context.
477 * @details This releases DNS resolving context and marks the context unusable.
480 * @param ctx DNS context
487 * @brief Reconfigure DNS resolving context.
489 * @details Reconfigures DNS context with new server list.
491 * @param ctx DNS context
492 * @param servers_str DNS server addresses using textual strings. The
499 * @param servers_sa DNS server addresses as struct sockaddr. The array
510 * @brief Cancel a pending DNS query.
512 * @details This releases DNS resources used by a pending query.
514 * @param ctx DNS context
515 * @param dns_id DNS id of the pending query
523 * @brief Cancel a pending DNS query using id, name and type.
525 * @details This releases DNS resources used by a pending query.
527 * @param ctx DNS context
528 * @param dns_id DNS id of the pending query
540 * @brief Resolve DNS name.
550 * @param ctx DNS context
553 * @param dns_id DNS id is returned to the caller. This is needed if one
575 * @brief Get default DNS context.
577 * @details The system level DNS context uses DNS servers that are
578 * defined in project config file. If no DNS servers are defined by the
579 * user, then resolving DNS names using default DNS context will do nothing.
580 * The configuration options are described in subsys/net/lib/dns/Kconfig file.
582 * @return Default DNS context.
587 * @brief Get IP address info from DNS.
596 * This variant uses system wide DNS servers.
600 * @param dns_id DNS id is returned to the caller. This is needed if one
630 * @brief Cancel a pending DNS query.
632 * @details This releases DNS resources used by a pending query.
634 * @param dns_id DNS id of the pending query
650 * @brief Initialize DNS subsystem.