org.littleshoot.util
Class DnsUtil
java.lang.Object
org.littleshoot.util.DnsUtil
public class DnsUtil
- extends Object
Utility class for making DNS queries.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DnsUtil
public DnsUtil()
throws NamingException
- Throws:
NamingException
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.