Using react/dns to look up hostnames
Added test for DNS lookup errors