This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am currently using this code to test the validity of a domain name:- String ipAddress = InetAddress.getByName("www.yahoo.com").getHostAddress();String hostName = InetAddress.getByName("126.96.36.199").getHostName(); Is it possible to set the type (like you would do with a command line nslookup) to mx, so that it tests for mail servers only? Many thanks