Example multithreaded DNS resolver in Ruby