---
title: "Retry DNS setup for a failed hostname publication on its current tunnel."
method: POST
path: "/ingress/connectors/{id}/hostnames/{hostname}/retry-dns"
tags: ["Ingress"]
---

# Retry DNS setup for a failed hostname publication on its current tunnel.

`POST /ingress/connectors/{id}/hostnames/{hostname}/retry-dns`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ingress/connectors/{id}/hostnames/{hostname}/retry-dns`
- Auth: HTTP bearer

## Path parameters

- `id` integer, required
- `hostname` string, required

## Response `200`

Publication result, including any DNS conflict

- HostnameView: Where a hostname stands with the tunnels, and why.
  - `candidates` HostnameCandidate[], required: The tunnels whose domain covers it.
    - `auto_publish` boolean, required
    - `connector_id` integer, required
    - `domain` string, required
    - `name` string, required
  - `chosen_connector_id` integer, nullable: The tunnel chosen for it, with mode `tunnel`.
  - `connector_id` integer, nullable: The tunnel that publishes it, or would once `detail` is dealt with.
  - `connector_name` string, nullable
  - `detail` string, required: What is happening; when it is not published, why and what to do.
  - `hostname` string, required
  - `mode` 'automatic' | 'tunnel' | 'off', required: How one hostname reaches visitors, as the operator chose it (ADR 058 D9).
  - `published_at` string, date-time, nullable
  - `retry_dns_connector_id` integer, nullable: Connector on which DNS setup for this failed publication can be retried.
  - `served_by_workers` boolean, required: Whether workers serve it. A tunnel only publishes those.
  - `state` string, required: `published`, `pending`, `error` or `not_published`.

## Other responses

- `400`: Invalid hostname
- `401`: Authentication required
- `403`: Settings write permission required
- `409`: Hostname is no longer eligible on this connector
- `500`: Could not load or save the publication
- `502`: Could not resolve the managed zone

## Changes

- **2026-11-21** `99903360f5bc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ingress/connectors/:id/hostnames/:hostname/retry-dns/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
