org.littleshoot.util
Class DnsUtil

java.lang.Object
  extended by org.littleshoot.util.DnsUtil

public class DnsUtil
extends Object

Utility class for making DNS queries.


Constructor Summary
DnsUtil()
           
 
Method Summary
 Attributes getARecords(String name)
           
 Attributes getCnamRecords(String name)
           
 NamingEnumeration<Binding> getHostfile(String name)
           
 Attributes getMxRecords(String name)
           
 Attributes getNsRecords(String name)
           
 Attributes getPtrRecords(String name)
           
 Attributes getSoaRecords(String name)
           
 Attributes getSrvRecords(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DnsUtil

public DnsUtil()
        throws NamingException
Throws:
NamingException
Method Detail

getARecords

public Attributes getARecords(String name)
                       throws NamingException
Throws:
NamingException

getPtrRecords

public Attributes getPtrRecords(String name)
                         throws NamingException
Throws:
NamingException

getCnamRecords

public Attributes getCnamRecords(String name)
                          throws NamingException
Throws:
NamingException

getMxRecords

public Attributes getMxRecords(String name)
                        throws NamingException
Throws:
NamingException

getSrvRecords

public Attributes getSrvRecords(String name)
                         throws NamingException
Throws:
NamingException

getSoaRecords

public Attributes getSoaRecords(String name)
                         throws NamingException
Throws:
NamingException

getNsRecords

public Attributes getNsRecords(String name)
                        throws NamingException
Throws:
NamingException

getHostfile

public NamingEnumeration<Binding> getHostfile(String name)
                                       throws NamingException
Throws:
NamingException


Copyright © 2011-2013 LittleShoot. All Rights Reserved.