RESOLV_CACHE: Correct construction of ip_str_all

The construction of ip_str_all in the cache entries was incorrect,
repeating the first entry twice and failing to pass the correct family
in for subsequent entries.  This fixes both of these issues.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>