at.molindo.utils.net
Class DnsUtils

java.lang.Object
  extended by at.molindo.utils.net.DnsUtils

public class DnsUtils
extends Object


Method Summary
static String getLocalHostName()
          best effort method to determine host name of localhost.
static String[] lookupMailHosts(String domainName)
          returns a String array of mail exchange servers (mail hosts) sorted from most preferred to least preferred source: http://ww2.cs.fsu.edu/~steele/MAILHOSTS/mailHostsLookup.html
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLocalHostName

public static String getLocalHostName()
best effort method to determine host name of localhost. falls back to 'localhost' if not possible

Returns:
a domain name

lookupMailHosts

public static String[] lookupMailHosts(String domainName)
                                throws NamingException
returns a String array of mail exchange servers (mail hosts) sorted from most preferred to least preferred source: http://ww2.cs.fsu.edu/~steele/MAILHOSTS/mailHostsLookup.html

Throws:
NamingException


Copyright © 2011 Molindo GmbH. All Rights Reserved.