If the nameserver pool size is 1, we don't need to maintain a list of servers, but only a single server variable. This saves space.
Minor style updates
Do it differently for IPv6 and IPv4