net: dns: Ignore queries when resolving a name
net: dns: Ignore queries when resolving a name

It might happen that while we are waiting for the response
to one of our query, we receive a query to resolve another name.
Previously this would make the current name resolution to fail because
only responses were expected to be received.

Signed-off-by: Léonard Bise <de3916488e017c874a84534423a3bc0001130d5f@gmail.com>

Vudentz/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,finikorg/zephyr,Vudentz/zephyr,galak/zephyr,galak/zephyr,nashif/zephyr,nashif/zephyr,nashif/zephyr,nashif/zephyr,Vudentz/zephyr,galak/zephyr,nashif/zephyr,Vudentz/zephyr,galak/zephyr,finikorg/zephyr,Vudentz/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr