|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xbill.DNS.ReverseMap
public final class ReverseMap
A set functions designed to deal with DNS names used in reverse mappings. For the IPv4 address a.b.c.d, the reverse map name is d.c.b.a.in-addr.arpa. For an IPv6 address, the reverse map name is ...ip6.arpa.
Method Summary | |
---|---|
static Name |
fromAddress(byte[] addr)
Creates a reverse map name corresponding to an address contained in an array of 4 bytes (for an IPv4 address) or 16 bytes (for an IPv6 address). |
static Name |
fromAddress(InetAddress addr)
Creates a reverse map name corresponding to an address contained in an InetAddress. |
static Name |
fromAddress(int[] addr)
Creates a reverse map name corresponding to an address contained in an array of 4 integers between 0 and 255 (for an IPv4 address) or 16 integers between 0 and 255 (for an IPv6 address). |
static Name |
fromAddress(String addr)
Creates a reverse map name corresponding to an address contained in a String. |
static Name |
fromAddress(String addr,
int family)
Creates a reverse map name corresponding to an address contained in a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Name fromAddress(byte[] addr)
addr
- The address from which to build a name.
public static Name fromAddress(int[] addr)
addr
- The address from which to build a name.
public static Name fromAddress(InetAddress addr)
addr
- The address from which to build a name.
public static Name fromAddress(String addr, int family) throws UnknownHostException
addr
- The address from which to build a name.
UnknownHostException
- The string does not contain a valid address.public static Name fromAddress(String addr) throws UnknownHostException
addr
- The address from which to build a name.
UnknownHostException
- The string does not contain a valid address.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |