> ## Documentation Index
> Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve a DNS server

> Returns the DNS server configuration, address, and deployment status. A server outside the account returns HTTP 404.



## OpenAPI

````yaml /openapi/source/external/netapps/netapps.json get /dns_servers/{id}
openapi: 3.1.0
info:
  version: 2.0.0
  title: Telnyx API
  x-latency-category: responsive
  x-endpoint-cost: light
  description: SIP trunking, SMS, MMS, Call Control and Telephony Data Services.
  license:
    name: MIT
    identifier: MIT
  contact:
    email: support@telnyx.com
servers:
  - url: https://api.telnyx.com/v2
    description: Version 2.0.0 of the Telnyx API
security:
  - bearerAuth: []
tags:
  - name: Networks
    description: Network operations
  - name: Public Internet Gateways
    description: Public Internet Gateway operations
  - name: WireGuard Interfaces
    description: WireGuard Interface operations
  - name: Tunnels
    description: >-
      Tunnels connect a Network to hosts behind a tunnel process within the
      user's network.
  - name: Network Routes
    description: Routes on a Network that send a CIDR to a next hop, such as a tunnel.
  - name: Tailscale Subnet Routers
    description: Tailscale Subnet Router operations
  - name: Virtual Cross Connects
    description: Virtual Cross Connect operations
  - name: Regions
    description: Regions
  - name: Global IPs
    description: Global IPs
  - name: DNS Servers
    description: DNS servers resolve private names and forward queries through a Network.
paths:
  /dns_servers/{id}:
    get:
      tags:
        - DNS Servers
      summary: Retrieve a DNS server
      description: >-
        Returns the DNS server configuration, address, and deployment status. A
        server outside the account returns HTTP 404.
      operationId: RetrieveDnsServer
      parameters:
        - $ref: '#/components/parameters/ResourceId'
      responses:
        '200':
          description: The DNS server. Deployment and removal complete asynchronously.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/DnsServer'
              example:
                data:
                  id: 93a7a1be-9375-446e-a8b2-a85dc391d443
                  record_type: dns_server
                  name: dns-ashburn
                  network_id: 0de011ae-ee53-4df4-ba96-754728eb5aad
                  region_code: ashburn-va
                  zones:
                    - corp.example
                  forwarders: []
                  forward_zones:
                    - zone: corp.internal
                      forwarders:
                        - 10.60.0.53
                  address: 172.27.240.22
                  status: provisioned
                  created_at: '2026-11-05T17:35:48.282986Z'
                  updated_at: '2026-11-05T17:35:48.282986Z'
        '404':
          description: DNS server not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
              example:
                errors:
                  - code: '10005'
                    title: Resource not found
                    detail: DNS server not found.
        default:
          $ref: '#/components/responses/GenericErrorResponse'
components:
  parameters:
    ResourceId:
      name: id
      description: Identifies the resource.
      in: path
      required: true
      schema:
        format: uuid
        type: string
        example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58
  schemas:
    DnsServer:
      type: object
      title: DnsServer
      properties:
        id:
          type: string
          format: uuid
          description: The ID of the DNS server.
          readOnly: true
          example: 93a7a1be-9375-446e-a8b2-a85dc391d443
        record_type:
          type: string
          enum:
            - dns_server
          readOnly: true
          description: The resource type.
          example: dns_server
        name:
          type: string
          minLength: 1
          maxLength: 128
          description: A name for the DNS server. The name cannot contain only whitespace.
          example: dns-ashburn
        network_id:
          type: string
          format: uuid
          description: The ID of the Network that owns the DNS server.
          example: 0de011ae-ee53-4df4-ba96-754728eb5aad
        region_code:
          type: string
          description: >-
            The region in which to create the DNS server. The region must
            support DNS servers and be available to the account.
          example: ashburn-va
        zones:
          type: array
          maxItems: 19
          uniqueItems: true
          default: []
          items:
            type: string
            maxLength: 248
            example: corp.example
          description: >-
            Additional zones besides `private.telnyxcompute.com`, which every
            server serves. Names are lowercased without a trailing dot. Zones
            cannot repeat, nest, or overlap the built-in zone or a forward zone.
            Zones and forward zones together can contain at most 19 names.
          example:
            - corp.example
        forwarders:
          type: array
          maxItems: 3
          uniqueItems: true
          default: []
          items:
            type: string
            format: ipv4
            example: 10.60.0.53
          description: >-
            Up to three IPv4 resolvers reachable through the Network for names
            outside the served and forwarded zones. An omitted or empty list
            uses public upstream resolvers instead. Loopback, unspecified,
            multicast, link-local, and DNS server addresses in `172.27.240.0/21`
            are not allowed.
          example:
            - 10.60.0.53
        forward_zones:
          type: array
          maxItems: 19
          default: []
          description: >-
            Zones whose queries go to resolvers on the Network. These zones
            cannot overlap each other, served zones, or
            `private.telnyxcompute.com`. Zones and forward zones together can
            contain at most 19 names. Forward-zone resolvers must accept DNS
            over TCP port 53.
          items:
            $ref: '#/components/schemas/DnsForwardZone'
          example:
            - zone: corp.internal
              forwarders:
                - 10.60.0.53
        address:
          type: string
          format: ipv4
          readOnly: true
          description: >-
            The IPv4 address that hosts on the Network query. Assigned at
            creation and unchanged for the lifetime of the server.
          example: 172.27.240.22
        status:
          type: string
          readOnly: true
          enum:
            - provisioning
            - provisioned
            - failed
            - deleting
          description: >-
            `provisioning`: deployment is queued or running. `provisioned`: the
            server serves the current configuration. `failed`: deployment
            failed. `deleting`: removal is queued or running. If deployment
            fails, send `PATCH /dns_servers/{id}` with `{}` to retry.
          example: provisioned
        created_at:
          type: string
          format: date-time
          readOnly: true
          description: The ISO 8601 timestamp when the DNS server was created.
          example: '2026-11-05T17:35:48.282986Z'
        updated_at:
          type: string
          format: date-time
          readOnly: true
          description: The ISO 8601 timestamp when the DNS server was last updated.
          example: '2026-11-05T17:35:48.282986Z'
    Errors:
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/Error'
      type: object
    DnsForwardZone:
      type: object
      additionalProperties: false
      required:
        - zone
        - forwarders
      properties:
        zone:
          type: string
          maxLength: 253
          description: >-
            The domain to forward, normalized to lowercase without a trailing
            dot.
          example: corp.internal
        forwarders:
          type: array
          maxItems: 3
          uniqueItems: true
          items:
            type: string
            format: ipv4
            example: 10.60.0.53
          description: >-
            One to three IPv4 resolvers reachable through the Network. Public
            addresses are not allowed.
          example:
            - 10.60.0.53
          minItems: 1
    Error:
      required:
        - code
        - title
      properties:
        code:
          type: string
        title:
          type: string
        detail:
          type: string
        source:
          type: object
          properties:
            pointer:
              description: JSON pointer (RFC6901) to the offending entity.
              type: string
            parameter:
              description: Indicates which query parameter caused the error.
              type: string
        meta:
          type: object
          additionalProperties: true
      type: object
  responses:
    GenericErrorResponse:
      description: Unexpected error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Errors'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````