类 UDns

java.lang.Object
com.gdxsoft.easyweb.utils.UDns

public class UDns extends Object
  • 构造器详细资料

    • UDns

      public UDns()
  • 方法详细资料

    • queryDkimPublickey

      public static String queryDkimPublickey(String domain, String selector)
      Query the public key from DNS record
      参数:
      domain - the email sign domain
      selector - the selector
      返回:
      public key
      抛出:
      Exception
    • createDefaultEnv

      public static Hashtable<String,String> createDefaultEnv()
    • nslookup

      public static List<String> nslookup(String domain, String queryType, String dnsServer)
      Query a domain
      参数:
      domain - the domain name
      queryType - the query type, E.g. txt, a, aaaa, mx, ns ...
      dnsServer - the DNS server
      返回:
      the multiple results
    • nslookup

      public static List<String> nslookup(String domain, String queryType)
      Query a domain
      参数:
      domain - the domain name
      queryType - the query type, E.g. txt, a, aaaa, mx, ns ...
      返回:
      the multiple results
    • nslookup

      public static List<String> nslookup(Hashtable<String,String> env, String domain, String queryType)
      Query a domain
      参数:
      env - the java.naming.factory environment
      domain - the domain name
      queryType - the query type, E.g. txt, a, aaaa, mx, ns ...
      返回:
      The all results