도메인 이름의 권장 형식은 REGION.p.DOMAIN입니다. 이 도메인 이름은 서비스 소비자의 VPC 네트워크에서 DNS 항목을 만드는 데 사용되므로 기존 DNS 도메인 이름과 충돌하지 않는 이름을 사용하는 것이 중요합니다. 이 형식을 사용하면 충돌 위험이 줄어듭니다.
예를 들어 서비스가 us-west1.p.example.com 도메인 이름으로 구성되고 서비스 소비자가 analytics 이름으로 엔드포인트를 만들면 analytics.us-west1.p.example.com의 DNS 레코드가 자동으로 생성됩니다.
서비스를 호스팅하는 부하 분산기가 이 도메인 이름에 연결되는 요청을 수락할 수 있어야 합니다. 내부 애플리케이션 부하 분산기를 사용하는 경우 서비스 소비자가 사용할 도메인 이름을 반영하도록 부하 분산기 구성을 업데이트해야 할 수 있습니다. 예를 들어 인증서 또는 URL 맵을 업데이트합니다.
서비스를 게시하는 동일한 IAM 주 구성원이 Google Search Console에서 도메인에 대한 소유자 권한이 있는지 확인해야 합니다. 자세한 내용은 Private Service Connect를 사용하여 서비스 게시의 시작하기 전에를 참조하세요.
서비스 소비자의 자동 DNS 구성
다음 구성이 있으면 DNS 항목이 자동으로 엔드포인트에 생성됩니다.
서비스 제작자가 서비스의 도메인 이름을 구성했습니다.
엔드포인트가 IPv4 주소로 구성되어 있습니다.
엔드포인트는 서비스 디렉터리 네임스페이스에 등록됩니다.
모든 새 엔드포인트는 자동으로 서비스 디렉터리에 등록되지만 이전 엔드포인트는 등록되지 않을 수 있습니다.
두 구성이 모두 있는 경우 엔드포인트가 생성되면 NAMESPACE--REGION이라는 이름으로 서비스 디렉터리 DNS 영역이 생성됩니다.
이 비공개 영역은 REGION 리전의 서비스 디렉터리 네임스페이스 NAMESPACE에서 찾은 서비스의 DNS 항목을 저장합니다. NAMESPACE--REGION의 글자 수 제한은 63자 이하입니다.
그림 1.
서비스 디렉터리를 사용하는 엔드포인트의 자동 DNS 구성(확대하려면 클릭)
엔드포인트를 만든 후 서비스 디렉터리 DNS 영역이 생성되었는지 확인할 수 있습니다. 서비스 디렉터리 DNS 영역이 생성되지 않으면 유사한 구성을 수동으로 만들 수 있습니다. 자세한 내용은 서비스 디렉터리 DNS 영역 보기를 참조하세요.
이러한 DNS 항목을 만들지 않으려면 다음 중 하나를 수행합니다.
다른 목적으로 Cloud DNS를 사용하지 않는 경우 Cloud DNS API를 중지하거나 Cloud DNS에 필요한 권한을 삭제합니다.
[[["이해하기 쉬움","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-05(UTC)"],[],[],null,["# DNS configuration for published services\n========================================\n\nService producers can [publish services by using\nPrivate Service Connect](/vpc/docs/configure-private-service-connect-producer).\nThe service producer can optionally configure a DNS domain name to associate\nwith the service. If a domain name is configured, and a\n[service consumer creates an endpoint that targets that\nservice](/vpc/docs/configure-private-service-connect-services), Private Service Connect\nand Service Directory automatically create DNS entries for the\nservice in a private DNS zone in the service consumer's VPC\nnetwork.\n\nDNS configuration for service producers\n---------------------------------------\n\nWhen you publish a service (create a service attachment), you can optionally\nconfigure a DNS domain name.\n\nIf you configure a domain name for a service, when a Private Service Connect endpoint is created that connects to that\nservice, the following configurations are made in the service consumer's\nVPC network:\n\n- A [Service Directory DNS\n zone](/service-directory/docs/configuring-service-directory-zone) is created for\n the specified domain.\n\n- A DNS entry for each endpoint is\n created in the zone.\n\nThe recommended format for the domain name is\n\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e`.p.`\u003cvar translate=\"no\"\u003eDOMAIN\u003c/var\u003e. Because this domain name is\nused to create DNS entries in the service consumer's VPC network,\nit's important to use a name that doesn't conflict with any existing DNS domain\nnames. Using this format reduces the risk of conflicts.\n\nFor example, if the service is configured with the domain name\n`us-west1.p.example.com`, and the service consumer creates an\nendpoint with the name `analytics`, a DNS\nrecord for `analytics.us-west1.p.example.com` is automatically created.\n\nThe load balancer that is hosting the service must be able to accept requests\ndirected to this domain name. If you are using an internal Application Load Balancer, you\nmight need to update the load balancer configuration to reflect the domain\nnames that you want service consumers to use. For example, update\n[certificates](/load-balancing/docs/ssl-certificates) or\n[URL maps](/load-balancing/docs/url-map-concepts).\n\nThe same IAM principal that [publishes the\nservice](/vpc/docs/configure-private-service-connect-producer) must confirm that\nthey have Owner permissions for the domain in the Google Search\nConsole. For more information, see [Before you\nbegin](/vpc/docs/configure-private-service-connect-producer#before) in\n*Publish services by using Private Service Connect*.\n\nAutomatic DNS configuration for service consumers\n-------------------------------------------------\n\nIf the following configurations are present, DNS entries are automatically\ncreated for endpoints:\n\n- The service producer has configured a domain name for the service.\n\n- The endpoint is configured with an IPv4 address.\n\n- The endpoint is registered with a\n Service Directory namespace.\n\n All new endpoints are automatically registered with\n Service Directory, but older endpoints might not be registered.\n\nIf both configurations are present, when the\nendpoint is created, a [Service Directory DNS\nzone](/service-directory/docs/configuring-service-directory-zone) is created\nwith the name \u003cvar translate=\"no\"\u003eNAMESPACE\u003c/var\u003e`--`\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e.\nThis private zone stores DNS entries for services found in the\nService Directory namespace \u003cvar translate=\"no\"\u003eNAMESPACE\u003c/var\u003e in\nthe region \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e. The character limit for\n\u003cvar translate=\"no\"\u003eNAMESPACE\u003c/var\u003e`--`\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e is 63 characters or fewer.\n[](/static/vpc/images/private-service-connect-services-autodns.svg) **Figure 1.**\nAutomatic DNS configuration for\nendpoints using Service Directory (click to enlarge).\n\nAfter you create the endpoint, you can\nverify if a Service Directory DNS zone is created. If the\nService Directory DNS zone is not created, you can manually\ncreate a similar configuration. For more information, see [View\nService Directory DNS zones](/vpc/docs/configure-private-service-connect-services#view-private-zones).\n\nIf you don't want these DNS entries to be created, do one of the following:\n\n- If you're not using Cloud DNS for another purpose, disable the\n Cloud DNS API, or remove the permissions that are required for\n Cloud DNS.\n\n- Wait for the DNS zone to be created, then [Delete the DNS\n zone](/dns/docs/zones#deleting_a_managed_zone) manually.\n\n If you want to manually configure DNS, see [Configure DNS\n manually](/vpc/docs/configure-private-service-connect-services#configure-dns-manual)."]]