rewrites
Add or remove custom DNS answers in a NextDNS profile, so a name like nas.home resolves to your own IP or another domain.
Instructions
Add or remove a DNS rewrite on a profile: a domain that answers with your own IP address or another domain, like nas.home for a home server. Use profile(section='rewrites') to see the current ones; use list_entries to block or allow a domain instead. Changes the profile and records it, so undo can put it back; adding one that exists or removing one that doesn't changes nothing, and removing without content removes every rewrite for that name. Returns what was done and the change ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The domain to answer for, like nas.home or printer.example.com. | |
| action | Yes | add or remove. | |
| content | No | For add: the IPv4 or IPv6 address, or the domain, to answer with. | |
| profile | No | The profile's ID or name. Leave empty for the only profile, or the default one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |