added domain name resolution