test the `` default '' ip addresses is the local ip addr concode_field_sep String DEFAULT concode_elem_sep String DUMMY_HOSTNAME concode_elem_sep String INVALID_DNS_SERVER concode_elem_sep Log LOG concode_field_sep void testDefaultDnsServer concode_elem_sep InetAddress getLocalIPAddr concode_elem_sep void testGetLocalHost concode_elem_sep void testRDNS concode_elem_sep void testLocalHostHasAnAddress concode_elem_sep void testGetLocalHostIsFast concode_elem_sep void testNullInterface concode_elem_sep void testIPsOfUnknownInterface concode_elem_sep String getLoopbackInterface concode_elem_sep void testLocalhostResolves concode_elem_sep void testLookupWithHostsFallback concode_elem_sep void testNullDnsServer concode_elem_sep String changeDnsCachedHostname concode_elem_sep void testLookupWithoutHostsFallback
void function ( ) { String [ ] loc0 = DNS . getIPs ( DEFAULT ) ; assertEquals ( "srini_string" , 1 , loc0 . length ) ; assertEquals ( getLocalIPAddr ( ) . getHostAddress ( ) , loc0 [ 0 ] . toString ( ) ) ; String loc1 = DNS . getDefaultIP ( DEFAULT ) ; assertEquals ( loc1 , loc0 [ 0 ] . toString ( ) ) ; }