nrf_getaddrinfo: Only returning a single result?

Does the `nrf_getaddrinfo` API support returning multiple DNS query results?

I can confirm using the modem trace and Wireshark that the DNS server is returning multiple address.

Adding the following to `nrf91_socket_offload_getaddrinfo` only ever shows a single result:

	struct nrf_addrinfo *a = nrf_res;
	while (a) {
		printk("NEXT: %p\n", a);
		a = a->ai_next;
	}

[00:00:06.818,725] <inf> lte_manager: Network registration status: Connected - roaming (Unknown)
[00:00:06.820,343] <inf> lte_manager: 		MCC: 505 MNC: 1
NEXT: 0x2002242c
[00:00:07.440,612] <inf> lte_manager: Sending SNTP IPv4 request to pool.ntp.org 0x2002e5d8 0 (69.164.213.136)...

Modem firmware version is v1.3.5

Parents
  • Jordan,

    Michal is away and I took this thread.

    It seems like you are doing it right to get the list of entries and I am not sure why the list is incomplete. 

    How often are you calling nrf_getaddrinfo? Or are you doing this in only one context?

    My colleague said that that he will test this out soon. Will let you know if there is any additional insights from his end on Monday.

Reply
  • Jordan,

    Michal is away and I took this thread.

    It seems like you are doing it right to get the list of entries and I am not sure why the list is incomplete. 

    How often are you calling nrf_getaddrinfo? Or are you doing this in only one context?

    My colleague said that that he will test this out soon. Will let you know if there is any additional insights from his end on Monday.

Children
Related