Cloud DNS에서는 다양한 유형의 정책을 지원합니다. 이 페이지에서는 다양한 정책 유형에 대해 소개하고, 상황에 따라 어떤 유형을 사용할 수 있는지 자세하게 설명합니다.
서버 정책은 Virtual Private Cloud(VPC) 네트워크 (DNS 전달, 로깅)에 비공개 DNS 구성을 적용합니다.
응답 정책은 쿼리 이름을 기준으로 비공개 DNS 응답을 재정의합니다.
라우팅 정책은 쿼리(예: 라운드 로빈, 위치정보)를 기준으로 트래픽을 조정합니다.
필요에 따라 이 세 가지 정책을 동시에 사용할 수 있습니다.
서버 정책
서버 정책을 사용하여 DNS 변환을 위한 하이브리드 배포를 설정합니다. DNS 변환 방향에 따라 인바운드 서버 정책을 설정할 수 있습니다. 워크로드에서 온프레미스 DNS 리졸버를 사용하려는 경우 아웃바운드 서버 정책을 사용하여 DNS 전달 영역을 설정할 수 있습니다. 그렇지 않고Google Cloud에서 온프레미스 워크로드로 이름을 변환하려는 경우 인바운드 서버 정책을 설정할 수 있습니다.
응답 정책을 사용하여 네트워크 내에서 DNS 쿼리가 처리되는 방식을 수정하는 커스텀 규칙을 추가합니다. DNS 리졸버는 DNS 조회 중에 이러한 규칙을 참조합니다. 응답 정책을 사용하면 레코드 대신 규칙을 사용하여 비공개 영역 내에서 DNS 관리를 맞춤설정할 수 있습니다. 응답 정책의 규칙이 수신되는 쿼리에 영향을 미치는 경우에 처리됩니다. 그러지 않으면 조회가 정상적으로 진행됩니다.
이 규칙을 사용하여 DNS 응답 정책 영역(RPZ) 초안 개념(IETF)과 유사한 결과를 얻을 수 있습니다. 응답 정책을 관리하는 방법에 대한 자세한 내용은 응답 정책 및 규칙 관리를 참고하세요.
응답 정책은 호환되는 리졸버가 쿼리에 대해 다른 응답을 제공하도록 하는 특별하게 포맷된 데이터가 포함된 다른 일반 DNS 영역인 RPZ와 다릅니다. 응답 정책은 DNS 영역이 아니며 별도로 관리됩니다. 자세한 내용은 응답 정책 및 규칙 관리를 참조하세요.
라우팅 정책
쿼리 및 가중치가 적용된 라운드 로빈(WRR), 위치정보, 장애 조치와 같은 기타 요소를 기반으로 트래픽을 조정하려면 리소스 레코드 세트에 DNS 라우팅 정책을 사용합니다. DNS 라우팅 정책을 통해 다음을 수행할 수 있습니다.
지리적 위치에서 콘텐츠 전송 네트워크(CDN) 제공업체로 트래픽을 유도합니다.
쿼리의 소스 리전을 기준으로 온프레미스 트래픽을 Google Cloud 부하 분산기로 라우팅합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[[["\u003cp\u003eCloud DNS offers server policies for configuring private DNS in a Virtual Private Cloud (VPC), including DNS forwarding and logging.\u003c/p\u003e\n"],["\u003cp\u003eResponse policies allow for the customization of DNS query handling within a network by overriding private DNS responses based on the query name.\u003c/p\u003e\n"],["\u003cp\u003eRouting policies direct traffic based on various factors, such as round robin and geolocation, to steer traffic to specific locations or services.\u003c/p\u003e\n"],["\u003cp\u003eAll three types of policies (server, response, and routing) can be implemented simultaneously to fit the specific needs of your network setup.\u003c/p\u003e\n"]]],[],null,["# DNS policies overview\n\nCloud DNS supports different types of policies. This page provides\ndetails about the different policy types and when you can use one or the other.\n\n- **Server policies** apply private DNS configuration to a Virtual Private Cloud (VPC) network (DNS forwarding, logging).\n- **Response policies** override private DNS responses based on the query name.\n- **Routing policies** steer traffic based on the query (for example, round robin, geolocation).\n\nYou can use all three policies at the same time depending on your needs.\n\nServer policies\n---------------\n\nUse server policies to set up hybrid deployments for DNS resolutions. You\ncan set up an inbound server policy depending on the direction of DNS\nresolutions. If your workloads plan to use an on-premises DNS resolver, you can\nset up DNS forwarding zones by using an outbound server policy. On the\nother hand, if you want your on-premises workloads to resolve names on\nGoogle Cloud, you can set up an inbound server policy.\n\nFor more information, see the\n[Server policies overview](/dns/docs/server-policies-overview).\n\nResponse policies\n-----------------\n\nUse response policies to add custom rules that modify how DNS queries are\nhandled within your network. The DNS resolver consults these rules during DNS\nlookups. Response policies let you customize DNS management within a private\nzone by using rules instead of records. If a rule in the response policy affects\nthe incoming query, it is processed; otherwise, the lookup proceeds normally.\nUse these rules to achieve results similar to the DNS [response policy zone\n(RPZ)](https://wikipedia.org/wiki/Response_policy_zone) draft concept\n([IETF](https://datatracker.ietf.org/doc/draft-ietf-dnsop-dns-rpz/)). For\ninformation about how to manage response policies, see [Manage response policies\nand rules](/dns/docs/zones/manage-response-policies).\n\nA response policy is different from an RPZ, which is an otherwise normal DNS\nzone with specially formatted data that causes compatible resolvers to\nprovide different responses to queries. Response policies aren't DNS zones\nand are managed separately. For more information, see\n[Manage response policies and rules](/dns/docs/zones/manage-response-policies).\n\nRouting policies\n----------------\n\nUse DNS routing policies for a resource record set to steer traffic based on\nthe query and other factors, such as weighted round robin (WRR), geolocation,\nor failover. DNS routing policies lets you do the following:\n\n- Steer traffic from a geographical location to a content delivery network (CDN) provider.\n- Route your on-premises traffic to Google Cloud load balancers based on the query's source region.\n- Specify that traffic that originated from a specific continent is served by services in the same continent.\n- Route traffic to different service providers on WRR basis.\n- Onboard new services with a percentage of the total traffic.\n\nFor more information, see [DNS routing policies and health checks](/dns/docs/routing-policies-overview).\n\nWhat's next\n-----------\n\n- [Apply DNS server policies](/dns/docs/policies)\n- [Manage response policies and\n rules](/dns/docs/zones/manage-response-policies)\n- [Manage DNS routing policies and health\n checks](/dns/docs/routing-policies-overview)"]]