func: CommandResult NetworkUtils::setDNS(NetworkParams& aOptions) uint32_t length = aOptions . mDnses . Length ( ) ; if ( length > 0 )  IFProperties interfaceProperties ; getIFProperties ( GET_CHAR ( mIfname ) , interfaceProperties ); static void getIFProperties(const char* ifname, IFProperties& prop) char key [ PROPERTY_KEY_MAX ] ; snprintf ( key , PROPERTY_KEY_MAX - 1 , "net.%s.gw" , ifname ); snprintf ( key , PROPERTY_KEY_MAX - 1 , "net.%s.dns1" , ifname ); property_get ( key , prop . dns1 , "" ); snprintf ( key , PROPERTY_KEY_MAX - 1 , "net.%s.dns2" , ifname ); property_get ( key , prop . dns2 , "" ); 