|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xbill.DNS.dns
A high level API for mapping queries to DNS Records.
As of dnsjava 1.4.0, all functions in this class are wrappers around functions in the Lookup and ReverseMap class, and those should be used instead.
Lookup
,
ReverseMap
Method Summary | |
static Record[] |
getAnyRecords(String namestr,
int type)
Finds any records with the given name and type in class IN |
static Record[] |
getAnyRecords(String namestr,
int type,
int dclass)
Finds any records with the given name, type, and class |
static Record[] |
getAnyRecordsByAddress(String addr,
int type)
Finds any records for the given dotted quad address and type in class IN |
static Cache |
getCache()
Obtains the (class IN) Cache used by functions in the dns class. |
static Cache |
getCache(int dclass)
Obtains the Cache used by functions in the dns class. |
static Record[] |
getRecords(String namestr,
int type)
Finds credible records with the given name and type in class IN |
static Record[] |
getRecords(String namestr,
int type,
int dclass)
Finds credible records with the given name, type, and class |
static Record[] |
getRecords(String namestr,
int type,
int dclass,
int cred)
Finds records with the given name, type, and class with a certain credibility |
static Record[] |
getRecordsByAddress(String addr,
int 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)
FindServer
public static Cache getCache(int dclass)
dclass
- The dns class of data in the cachepublic static Cache getCache()
public static Record[] getRecords(String namestr, int type, int dclass, int 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 records
Credibility
public static Record[] getRecords(String namestr, int type, int 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, int type, int 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 namestr, int type)
namestr
- The name of the desired recordstype
- The type of the desired records
public static Record[] getAnyRecords(String namestr, int type)
namestr
- The name of the desired recordstype
- The type of the desired records
public static Record[] getRecordsByAddress(String addr, int type)
addr
- The dotted quad address of the desired recordstype
- The type of the desired records
public static Record[] getAnyRecordsByAddress(String addr, int type)
addr
- The dotted quad address of the desired recordstype
- The type of the desired records
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |