# Update a host’s IP address from a webhook

Send an address to a private webhook to update one configured host. Repeating the same address keeps the existing DNS record.

[Use template](https://dashboard.fasthook.io/workflow/new?templateKey=webhook-ip-updates-to-cloudflare-dns&templateName=Update+a+host%E2%80%99s+IP+address+from+a+webhook)

**Required accounts**

- Cloudflare DNS

## Update a host’s IP address from a webhook

### 1. Trigger · New IP address received

**Webhook**. Receive a JSON submission from your existing form backend at this Workflow's private webhook URL.

### 2. Action · Update the configured host address

**Cloudflare DNS**. Create an A or AAAA record or change its IP address. Repeated deliveries keep the same record.

## Set up your workflow

1. **Select the hostname** Connect Cloudflare with Zone Read and DNS Edit for the chosen zone. Enter the full hostname in the DNS step. Use a DNS-only A or AAAA record if public lookups should return the submitted IP.
2. **Send the first address** Copy the private webhook URL and POST JSON such as \{"address":"192.0.2.10"\}. Use an address you control in production. The workflow creates the record when that address family is absent.
3. **Check the change** Send the same address twice, then send a different address of the same family. Query an authoritative nameserver for the hostname and compare its answer with the last address.

## Related integrations

- [Webhook trigger](https://www.fasthook.io/docs/triggers/webhook)
- [Cloudflare DNS integrations](https://www.fasthook.io/apps/cloudflare-dns/integrations)

## Related workflow templates

- [Route occupied customer hostnames to Trello](https://www.fasthook.io/templates/cloudflare-dns-alias-conflicts-to-trello.md): Try to reserve a requested hostname for your service.
- [Send Telegram a receipt when a host address changes](https://www.fasthook.io/templates/cloudflare-dns-address-changes-to-telegram.md): Update a configured host from a private webhook and notify its operator only when Cloudflare creates or changes the address.
