|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.xbill.DNS.dns
High level API for mapping queries to DNS Records. Caching is used when possible to reduce the number of DNS requests, and a Resolver is used to perform the queries. A search path can be set or determined by FindServer, which allows lookups of unqualified names.
Resolver,
FindServer| Method Summary | |
static Record[] |
getAnyRecords(String name,
short type)
Finds any records with the given name and type in class IN |
static Record[] |
getAnyRecords(String namestr,
short type,
short dclass)
Finds any records with the given name, type, and class |
static Record[] |
getAnyRecordsByAddress(String addr,
short type)
Finds any records for the given dotted quad address and type in class IN |
static Cache |
getCache()
Obtains the Cache used by functions in the dns class. |
static Record[] |
getRecords(String name,
short type)
Finds credible records with the given name and type in class IN |
static Record[] |
getRecords(String namestr,
short type,
short dclass)
Finds credible records with the given name, type, and class |
static Record[] |
getRecords(String namestr,
short type,
short dclass,
byte cred)
Finds records with the given name, type, and class with a certain credibility |
static Record[] |
getRecordsByAddress(String addr,
short type)
Finds credible records for the given dotted quad address and type in class IN |
static Resolver |
getResolver()
Obtains the Resolver used by functions in the dns class. |
static String |
inaddrString(InetAddress addr)
Converts an InetAddress into the corresponding domain name (127.0.0.1 -> 1.0.0.127.IN-ADDR.ARPA.) |
static String |
inaddrString(String s)
Converts an String containing an IP address in dotted quad form into the corresponding domain name. |
static void |
setResolver(Resolver _res)
Sets the Resolver to be used by functions in the dns class |
static void |
setSearchPath(String[] domains)
Specifies the domains which will be appended to unqualified names before beginning the lookup process. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Method Detail |
public static String inaddrString(InetAddress addr)
public static String inaddrString(String s)
public static void setResolver(Resolver _res)
public static Resolver getResolver()
public static void setSearchPath(String[] domains)
FindServerpublic static Cache getCache()
public static Record[] getRecords(String namestr,
short type,
short dclass,
byte cred)
namestr - The name of the desired recordstype - The type of the desired recordsdclass - The class of the desired recordscred - The minimum credibility of the desired recordsCredibility
public static Record[] getRecords(String namestr,
short type,
short dclass)
namestr - The name of the desired recordstype - The type of the desired recordsdclass - The class of the desired records
public static Record[] getAnyRecords(String namestr,
short type,
short dclass)
namestr - The name of the desired recordstype - The type of the desired recordsdclass - The class of the desired records
public static Record[] getRecords(String name,
short type)
namestr - The name of the desired recordstype - The type of the desired records
public static Record[] getAnyRecords(String name,
short type)
namestr - The name of the desired recordstype - The type of the desired records
public static Record[] getRecordsByAddress(String addr,
short type)
addr - The dotted quad address of the desired recordstype - The type of the desired records
public static Record[] getAnyRecordsByAddress(String addr,
short type)
addr - The dotted quad address of the desired recordstype - The type of the desired records
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||