Windows DNS

This commit is contained in:
Grant Limberg 2020-08-11 18:55:42 -07:00
parent 6868e98904
commit d9c4e644de
5 changed files with 427 additions and 6 deletions

24
osdep/WinDNSHelper.hpp Normal file
View file

@ -0,0 +1,24 @@
#ifndef WIN_DNS_HELPER_H_
#define WIN_DNS_HELPER_H_
#include <vector>
#include <cstdint>
#include "../node/InetAddress.hpp"
namespace ZeroTier
{
class WinDNSHelper
{
public:
static void setDNS(uint64_t nwid, const char* domain, const std::vector<InetAddress>& servers);
static void removeDNS(uint64_t nwid);
private:
static std::pair<bool, std::string> hasDNSConfig(uint64_t nwid);
};
}
#endif