Multi-threaded DNS resolver