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

# Update Reverse DNS

> Update the reverse DNS (PTR) record for the server's IP address.



## OpenAPI

````yaml put /servers/{server}/rdns
openapi: 3.1.0
info:
  title: APIFiddle Sample Definition
  version: 0.0.0
  description: Example workspace
servers:
  - url: https://rdp.sh/api/v1
    description: Default production endpoint.
security: []
paths:
  /servers/{server}/rdns:
    put:
      summary: Update server reverse DNS
      description: Update the reverse DNS (PTR) record for the server's IP address.
      operationId: updateServerRdns
      parameters:
        - $ref: '#/components/parameters/server'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                rdns:
                  type: string
                  minLength: 4
                  maxLength: 40
                  description: >-
                    Reverse DNS hostname (4-40 characters). Leave empty for
                    default.
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                title: UpdateRdnsOk
                properties:
                  status:
                    type: boolean
                  message:
                    type: string
                  rdns:
                    type: string
          description: Reverse DNS updated successfully.
        '403':
          description: Unauthorized access.
        '500':
          description: Failed to update reverse DNS.
      security:
        - Authorization: []
components:
  parameters:
    server:
      in: path
      name: server
      schema:
        type: string
      required: true
  securitySchemes:
    Authorization:
      in: header
      name: Authorization
      type: apiKey

````