upsert_host_mapping
Create or update a DNS host mapping to route a domain to an IPv4/IPv6 target or block it. Provide an existing mapping ID to update; omit to create.
Instructions
Creates a native DNS Host mapping, or updates one when an existing mapping id is provided. Writes are applied immediately and do not require a second confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Existing Host mapping UUID; omit to create a new mapping | |
| action | No | Map the domain to target, or block it (default map) | |
| domain | Yes | ASCII domain name to match, for example api.example.com | |
| target | No | IPv4 or IPv6 target; omit for a block mapping | |
| comment | No | Optional operator comment; use an empty string to clear it | |
| enabled | No | Whether the mapping is active (default true) |