Adds ability to resolve an arbitrary number of addresses, added multidnsresolution in util.c