Function to check DNS server
Does Java has similar PHP function checkdnsrr ?
http://php.net/manual/en/function.checkdnsrr.p开发者_运维问答hp
There's InetAddress.getAllByName
although it doesn't allow you to specify the record type.
If that's not enough for you, there are third party libraries around - the first one I found was dnsjava.
精彩评论