|
jSyncManager Simple Java Server | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jSyncManager.SJS.Adapters.SMTPServer.DNSUtil
public class DNSUtil
Checks the MX record and returns the follow 3 possibilities: mybb.ca has 0 mail servers mybb.ca has 2 mail servers: mail1.backbonesystems.org tangwenfans.com : DNS name not found [response code 3]
Constructor Summary | |
---|---|
DNSUtil()
|
Method Summary | |
---|---|
(package private) static java.lang.String |
doLookup(java.lang.String hostName)
gets the mx record info and format it into string |
static void |
main(java.lang.String[] args)
|
static java.lang.String |
MXLookup(java.lang.String domain)
calls doLookup function, and gets the mx record info |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DNSUtil()
Method Detail |
---|
public static java.lang.String MXLookup(java.lang.String domain)
domain
-
static java.lang.String doLookup(java.lang.String hostName) throws javax.naming.NamingException
hostName
-
javax.naming.NamingException
public static void main(java.lang.String[] args)
|
jSyncManager Simple Java Server | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |