Randomized DNS option for host override

Also counter for hosts/addresses used in requests
custom DNS resolver
Fixed dns test and added some comments
Function for generating a pct of v4 request for iOS