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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DnsUtils
public DnsUtils()
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 10:38:35 AM April 14, 2011, © 1996-2010 Cafésoft LLC. All rights reserved.