[ Web Proxy ]
URL:
Viewing: https://cloud.google.com/service-directory/docs/query-dns [Back]  [Original]

Query using DNS  |  Service Directory  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback

Query using DNS Stay organized with collections Save and categorize content based on your preferences.

Service Directory supports DNS queries for the following record types:

For a detailed explanation of these record types, see List of DNS record types.

A/AAAA queries must observe the following format:

SERVICE_NAME.ZONE_DOMAIN_NAME

Optionally:

ENDPOINT_NAME.SERVICE_NAME.ZONE_DOMAIN_NAME

SRV queries must observe the following format:

_SERVICE_NAME._tcp.SERVICE_NAME.ZONE_DOMAIN_NAME
Note: SERVICE_NAME appears twice in the query name and the first label is preceded by a literal underscore character.

Optionally:

_SERVICE_NAME._tcp.ENDPOINT_NAME.SERVICE_NAME.ZONE_DOMAIN_NAME

All services and endpoints in Service Directory default to having their service name as the symbolic service and a protocol of tcp.

What's next

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-08-11 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-11 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page