samples/net/dns_resolve/src/main.c
/* DNS query will most probably fail if we do not have a default
 * router configured because typically the DNS server is outside of local
 * network. So wait for that before continuing.
 */
DNS query will most probably fail if we do not have a default
router configured because typically the DNS server is outside of local
network. So wait for that before continuing.
DNS query will most probably fail if we do not have a default router configured because typically the DNS server is outside of local network . So wait for that before continuing .
static void ipv6_router_add_handler(struct net_mgmt_event_callback *cb,
				    u32_t mgmt_event,
				    struct net_if *iface)
{
	if (mgmt_event != NET_EVENT_IPV6_ROUTER_ADD) {
		return;
	}
	k_delayed_work_init(&ipv6_timer, do_ipv6_lookup);
	k_delayed_work_submit(&ipv6_timer, 0);
}
static void ipv6_router_add_handler ( struct net_mgmt_event_callback * cb , u32_t mgmt_event , struct net_if * iface ) { if ( mgmt_event != NET_EVENT_IPV6_ROUTER_ADD ) { return ; } k_delayed_work_init ( & ipv6_timer , do_ipv6_lookup ) ; k_delayed_work_submit ( & ipv6_timer , 0 ) ; }
DNS query will most probably fail if we do not have a default
 router configured because typically the DNS server is outside of local
 network.
DNS query will most probably fail if we do not have a default router configured because typically the DNS server is outside of local network .
/* We cannot run DNS lookup directly from this thread as the
	 * management event thread stack is very small by default.
	 * So run it from work queue instead.
	 */