WinDNSHelper.hpp 429 B

12345678910111213141516171819202122
  1. #ifndef WIN_DNS_HELPER_H_
  2. #define WIN_DNS_HELPER_H_
  3. #include "../node/InetAddress.hpp"
  4. #include <cstdint>
  5. #include <vector>
  6. namespace ZeroTier {
  7. class WinDNSHelper {
  8. public:
  9. static void setDNS(uint64_t nwid, const char* domain, const std::vector<InetAddress>& servers);
  10. static void removeDNS(uint64_t nwid);
  11. private:
  12. static std::pair<bool, std::string> hasDNSConfig(uint64_t nwid);
  13. };
  14. } // namespace ZeroTier
  15. #endif