DNS Resolutions using threads