Fix s3 with round robin dns

S3 backend with Resolver integration. Target host DNS names are resolved only once and DNS entries are populated manually.
There are now helper functions in dns.h that should extract the host name