jSyncManager Simple Java Server

org.jSyncManager.SJS.Adapters.SMTPServer
Class DNSUtil

java.lang.Object
  extended by org.jSyncManager.SJS.Adapters.SMTPServer.DNSUtil

public class DNSUtil
extends java.lang.Object

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]

Author:
tianfan

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

DNSUtil

public DNSUtil()
Method Detail

MXLookup

public static java.lang.String MXLookup(java.lang.String domain)
calls doLookup function, and gets the mx record info

Parameters:
domain -
Returns:
the string of mx record

doLookup

static java.lang.String doLookup(java.lang.String hostName)
                          throws javax.naming.NamingException
gets the mx record info and format it into string

Parameters:
hostName -
Returns:
the string of mx record
Throws:
javax.naming.NamingException

main

public static void main(java.lang.String[] args)

jSyncManager Simple Java Server

Copyright (c) 2004 Brad BARCLAY. All Rights Reserved.