com.cafesoft.core.util
Class DnsUtils

java.lang.Object
  |
  +--com.cafesoft.core.util.DnsUtils

public class DnsUtils
extends Object

Provides functions for manipulating DNS data.

Since:
6/2/03

Constructor Summary
DnsUtils()
           
 
Method Summary
static String getDnsDomainName(String serverName)
          Extracts the DNS Domain name from the specified server name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DnsUtils

public DnsUtils()
Method Detail

getDnsDomainName

public static String getDnsDomainName(String serverName)
Extracts the DNS Domain name from the specified server name.

Parameters:
serverName - the name of the server
Returns:
the DNS Domain name associated with the request. For example:
  • server name: h.d.com returns: .d.com
  • server name: h returns: .local
  • server name: localhost returns: .local
  • server name: 192.168.0.1 returns: ??? (configure something here?)


Generated on 8:41:50 AM June 06, 2005, © 1996-2005 Cafésoft LLC. All rights reserved.