Class DnspodFree

java.lang.Object
com.qiniu.android.dns.http.DnspodFree
All Implemented Interfaces:
IResolver

public final class DnspodFree
extends java.lang.Object
implements IResolver
Created by bailong on 15/6/12.
  • Field Summary

    Fields inherited from interface com.qiniu.android.dns.IResolver

    DNS_DEFAULT_TIMEOUT
  • Constructor Summary

    Constructors 
    Constructor Description
    DnspodFree()  
    DnspodFree​(java.lang.String ip)  
    DnspodFree​(java.lang.String ip, int timeout)  
  • Method Summary

    Modifier and Type Method Description
    Record[] resolve​(Domain domain, NetworkInfo info)
    根据域名参数进行查询

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DnspodFree

      public DnspodFree​(java.lang.String ip)
    • DnspodFree

      public DnspodFree​(java.lang.String ip, int timeout)
    • DnspodFree

      public DnspodFree()
  • Method Details

    • resolve

      public Record[] resolve​(Domain domain, NetworkInfo info) throws java.io.IOException
      Description copied from interface: IResolver
      根据域名参数进行查询
      Specified by:
      resolve in interface IResolver
      Parameters:
      domain - 域名参数
      info - 网络信息,便于根据运营商选择不同策略
      Returns:
      dns记录列表
      Throws:
      java.io.IOException - 劫持或者网络异常