ServicePointManager.EnableDnsRoundRobin 속성

정의

DNS(Domain Name Service) 확인이 적절한 IP(인터넷 프로토콜) 주소 사이에서 순환되는지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 static property bool EnableDnsRoundRobin { bool get(); void set(bool value); };
public static bool EnableDnsRoundRobin { get; set; }
static member EnableDnsRoundRobin : bool with get, set
Public Shared Property EnableDnsRoundRobin As Boolean

속성 값

DNS 확인 시 항상 특정 호스트의 첫 번째 IP 주소가 반환되면 false이고, 그렇지 않으면 true입니다. 기본값은 false입니다.

예제

다음 코드 예제에서는이 속성을 설정합니다.

ServicePointManager::UseNagleAlgorithm = true;
ServicePointManager::Expect100Continue = true;
ServicePointManager::CheckCertificateRevocationList = true;
ServicePointManager::DefaultConnectionLimit =
    ServicePointManager::DefaultPersistentConnectionLimit;
ServicePointManager::EnableDnsRoundRobin = true;
ServicePointManager::DnsRefreshTimeout = 4*60*1000; // 4 minutes
ServicePointManager.UseNagleAlgorithm = true;
ServicePointManager.Expect100Continue = true;
ServicePointManager.CheckCertificateRevocationList = true;
ServicePointManager.DefaultConnectionLimit = ServicePointManager.DefaultPersistentConnectionLimit;
ServicePointManager.EnableDnsRoundRobin = true;
ServicePointManager.DnsRefreshTimeout = 4*60*1000; // 4 minutes
ServicePointManager.UseNagleAlgorithm = True
ServicePointManager.Expect100Continue = True
ServicePointManager.CheckCertificateRevocationList = True
ServicePointManager.DefaultConnectionLimit = _
    ServicePointManager.DefaultPersistentConnectionLimit
ServicePointManager.EnableDnsRoundRobin = True
ServicePointManager.DnsRefreshTimeout = 4*60*1000

설명

둘 이상의 IP 주소가 호스트 이름과 연결된 경우 DNS 확인은 일반적으로 첫 번째 IP 주소만 반환합니다. 이 속성을 로 true설정하면 후속 DNS 확인이 특정 호스트에 대해 사용 가능한 모든 IP 주소를 순환합니다. 이 옵션은 서비스가 서버 또는 서버 클러스터 간의 부하 분산 메커니즘으로 DNS를 사용하는 경우에 유용합니다.

적용 대상

추가 정보