use of org.minidns.dnsname.DnsName in project minidns by MiniDNS.
the class ResolverApi method reverseLookup.
public ResolverResult<PTR> reverseLookup(Inet6Address inet6Address) throws IOException {
DNSName reversedIpAddress = InetAddressUtil.reverseIpAddressOf(inet6Address);
DNSName dnsName = DNSName.from(reversedIpAddress, DNSName.IP6_ARPA);
return resolve(dnsName, PTR.class);
}
use of org.minidns.dnsname.DnsName in project minidns by MiniDNS.
the class NSEC method parse.
public static NSEC parse(DataInputStream dis, byte[] data, int length) throws IOException {
DNSName next = DNSName.parse(dis, data);
byte[] typeBitmap = new byte[length - next.size()];
if (dis.read(typeBitmap) != typeBitmap.length)
throw new IOException();
TYPE[] types = readTypeBitMap(typeBitmap);
return new NSEC(next, types);
}
Aggregations