Java Code Examples for org.xbill.DNS.Address#getByName()

The following examples show how to use org.xbill.DNS.Address#getByName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Dnsbl.java    From mireka with Apache License 2.0 5 votes vote down vote up
/**
 * @return null if the host is not listed
 */
private InetAddress queryARecord() {
    try {
        return Address.getByName(queryDomain);
    } catch (UnknownHostException e) {
        return null;
    }
}
 
Example 2
Source File: DNSLookupService.java    From openvisualtraceroute with GNU Lesser General Public License v3.0 4 votes vote down vote up
public InetAddress getIp(final String name) throws UnknownHostException {
	return Address.getByName(name);
}