Back to project page android-sdk.
The source code is released under:
MIT License
If you think the Android project android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.qiniu.android; // w w w . j av a2s . c o m import android.test.AndroidTestCase; import com.qiniu.android.utils.Dns; import junit.framework.Assert; /** * Created by bailong on 15/1/5. */ public class DnsTest extends AndroidTestCase { public void testDns() { String ip = Dns.getAddressesString("qiniu.com"); Assert.assertTrue(!ip.equals("")); ip = Dns.getAddressesString("nodns.qiniu.com"); Assert.assertEquals("", ip); } }