# Reserved IPs

A reserved IP is a static public IPv4 or IPv6 address that your team holds. Assign it to a server, and the address stays yours when the server goes away, so your DNS records and allowlists keep working.

A reserved IPv4 address is billed while you hold it, whether or not it's attached to a server.

## Reserve an IP address

1. Go to **Networks** → **Reserved IPs** → [Create reserved IP](https://cloud.betterstack.com/team/t0/reserved-ips/new ";_blank")
2. Enter a **Name**, for example `prod-web-ip-1`.
3. Select the **Data center** of the servers that will use the address.
4. Select **IPv4** or **IPv6** as the **IP address type**.
5. Click **Reserve IP address**.

![Reserve IP address form](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/3a42fb40-fee4-4303-8929-263eceff7000/md2x =2100x1400)

A reserved IP only attaches to servers in its own data center.

## Assign it to a server

1. In **Networks** → **Reserved IPs**, open the **⋯** menu of an unassigned address and click **Assign to server**.
2. Select the **Server**.
3. Click **Assign**.

Better Stack adds the address to the running server and configures it inside the server for you, so there's nothing to set up in the operating system.

[warning]
#### Does the server have a firewall?
The server's [firewall](https://betterstack.com/docs/cloud/networks/firewalls/#what-a-firewall-filters) filters the reserved IP like its other public addresses. Add an inbound rule for the traffic you expect on the reserved IP before you assign it, or that traffic is dropped.
[/warning]

## Keep the address a server already has

Every server boots with its own public addresses. To keep one of them after the server is removed, turn it into a reserved IP:

1. Go to **Networks** → [IP addresses](https://cloud.betterstack.com/team/t0/ip-addresses ";_blank")
2. Open the **⋯** menu of the address and click **Promote to reserved IP**.

The address keeps working on the same server with no interruption. While that server exists, the address stays assigned to it. Once you remove the server, the address stays in your team as an unassigned reserved IP, ready for another server.

## Set reverse DNS

1. In **Networks** → **Reserved IPs**, open the **⋯** menu of the address and click **Configure reverse DNS**.
2. Enter a fully qualified **Hostname**, for example `web.example.com`. Leave it blank to clear the record.
3. Click **Save changes**.

Reverse DNS takes a few minutes to update. You can set reverse DNS for every other public address of your servers the same way in **Networks** → **IP addresses**.

## Good to know

- **Outbound traffic leaves from the boot address.** The server's default route uses the address it booted with, so connections the server opens come from that address, not from the reserved IP.
- **The server doesn't wait for a reserved IP at restart.** A service that binds the reserved IP can start a moment before the address exists. Give it a restart policy, for example `Restart=on-failure` with `RestartSec=2` in its systemd unit, or let it bind all addresses.
- **Removing a reserved IP releases it.** The address goes back to the pool and you can't get it back.

Reserved IPs count toward your public IP address [quotas](https://betterstack.com/docs/cloud/trust-and-safety/quotas/).

## Need help?

Please let us know at hello@betterstack.com.  
We're happy to help! 🙏
