add_local_cname_record
Map a hostname to another domain in Pi-hole DNS by adding a local CNAME record, replacing any existing CNAME for that host.
Instructions
Add a local CNAME record (host -> target). Replaces any existing CNAME for the same host.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"host": "<host>",
"target": "<target>"
},
"name": "add_local_cname_record"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | ||
| host | Yes | ||
| target | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||