#pragma once
#ifndef NV_CUSTOM_DNS_H_
#define NV_CUSTOM_DNS_H_
/*
 * NVCustomDNS.h
 *
 *  Created on: Dec 20, 2021
 *      Author: dengminhao
 */
#include <vector>
#ifdef SDK_SIMPLE_INCLUDE
#include "common.h"
#else
#include "YCKSdwan/common.h"
#endif
namespace NeuVision{
	enum eDnsType {
		Auto = 0, 
		Oversea,	//海外
		Inland		//国内 
	};
    //query hostname to ips.  Can only query subdomain of ourself-domains.
    //SLOW API: this api may be very slow (1s ~ >10s) if it doesn't hit cache (first query of a domain).
    DLL_DECL_SDWAN std::vector<std::string> queryDns(const char* host,int last_error = 0);
    DLL_DECL_SDWAN void updateLocation(eDnsType type = Auto);
}


#endif //NV_CUSTOM_DNS_H_