public static void setDnsCache ( Properties properties ) { for ( Map . Entry < Object , Object > entry : properties . entrySet ( ) ) { final String host = ( String ) entry . getKey ( ) ; String ipList = ( String ) entry . getValue ( ) ; ipList = ipList . trim ( ) ; if ( ipList . isEmpty ( ) ) continue ; final String [ ] ips = COMMA_SEPARATOR . split ( ipList ) ; setDnsCache ( host , ips ) ; } }
Set dns cache entries by properties