provision_dns
Create DNS records with automatic zone discovery and validation. Preview changes in dry-run mode, then execute with dry_run=False.
Instructions
Create a new DNS record with automatic zone discovery and validation. USE THIS to create records. For update/delete/list use manage_dns_record().
IMPORTANT: Runs in dry_run mode by default — shows what WOULD be created without actually creating. Set dry_run=False to execute the actual DNS record creation.
Args: name: Record name (e.g., "www" for www.example.com, or full FQDN "www.example.com") record_type: DNS record type value: Record value — IP for A/AAAA, domain for CNAME/MX/PTR/NS, text for TXT zone: DNS zone name (e.g., "example.com"). If not provided, extracted from the name. view: Optional DNS view name or ID. Required when a zone exists in multiple views (e.g., "default", "Azure.private-2") ttl: Time to live in seconds (optional) dry_run: If True (default), only shows what would be created. Set to False to actually create. comment: Optional description
Returns: Created DNS record details
Examples: - provision_dns(name="www", record_type="A", value="10.20.3.50", zone="example.com") → DRY RUN - provision_dns(name="www", record_type="A", value="10.20.3.50", zone="example.com", dry_run=False) - provision_dns(name="app.example.com", record_type="CNAME", value="lb.example.com", dry_run=False)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | ||
| name | Yes | ||
| view | No | ||
| zone | No | ||
| value | Yes | ||
| comment | No | ||
| dry_run | No | ||
| record_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||