---
updatedAt: 2026-06-08T17:25:35.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/linode-api/llms.txt
---

# Update an IP address

Updates the configuration of an existing IP address. Use this operation to set Reverse DNS (RDNS) and to toggle the `reserved` status of an IPv4 address. You can update both the `reserved` status and the `rdns` field in a single request, if the IP is assigned to a Linode.

__RDNS__:
- Forward DNS must already be set up for reverse DNS to be applied.
- If you set the `rdns` to `null` for public IPv4 addresses, it resets to the default `ip.linodeusercontent.com` RDNS value.
- You can't set RDNS on an unassigned reserved IP. The IP must be assigned to a Linode to update its RDNS record.
- If the IP address is assigned to a NAT Gateway, you can't configure reverse DNS. Setting the `rdns` property in your request payload under this condition will result in a 400 error.

__Reserved IP__:
- Setting `reserved` to `true` on an ephemeral IP converts it to a reserved IP.
- Setting `reserved` to `false` on a reserved IP converts it to an ephemeral IP. If you convert an unassigned reserved IP to ephemeral, the IP is immediately released from your account. Unreserving this IP removes it from your reserved list and makes it unavailable to assign. This action can't be undone.
- You can toggle the `reserved` status of IP addresses assigned to NAT Gateways.


**Permissions and scopes**

To call this operation, you need the following:

- **OAuth scopes**. Your user needs these scopes assigned. [Learn more](https://techdocs.akamai.com/linode-api/reference/get-started#oauth).

  - Scopes: `ips:read_write`


**CLI**

```shell
linode-cli networking ip-update \
  203.0.113.1 \
  --rdns "test.example.org" \
  --reserved true
```

[Learn more](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli)

# OpenAPI definition

````json
{
  "components": {
    "securitySchemes": {
      "oauth": {
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://login.linode.com/oauth/authorize",
            "scopes": {
              "account:read_only": "Allows access to GET information about your account.",
              "account:read_write": "Allows access to all endpoints related to your account.",
              "child_account:read_only": "Allows access to GET information about deprecated parent/child operations.",
              "child_account:read_write": "Allows access to deprecated parent/child operations.",
              "databases:read_only": "Allows access to GET information about databases.",
              "databases:read_write": "Allows access to all endpoints related to databases.",
              "domains:read_only": "Allows access to GET Domains on your account.",
              "domains:read_write": "Allows access to all Domain endpoints.",
              "events:read_only": "Allows access to GET your Events.",
              "events:read_write": "Allows access to all endpoints related to your Events.",
              "firewall:read_only": "Allows access to GET information about your Firewalls.",
              "firewall:read_write": "Allows access to all Firewall endpoints.",
              "images:read_only": "Allows access to GET your Images.",
              "images:read_write": "Allows access to all endpoints related to your Images.",
              "ips:read_only": "Allows access to GET your ips.",
              "ips:read_write": "Allows access to all endpoints related to your ips.",
              "linodes:read_only": "Allows access to GET Linodes on your account.",
              "linodes:read_write": "Allow access to all endpoints related to your Linodes.",
              "lke:read_only": "Allows access to GET LKE Clusters on your account.",
              "lke:read_write": "Allows access to all endpoints related to LKE Clusters on your account.",
              "longview:read_only": "Allows access to GET your Longview Clients.",
              "longview:read_write": "Allows access to all endpoints related to your Longview Clients.",
              "monitor:read_only": "Allows access to Monitor (Akamai Cloud Pulse) data.",
              "monitor:read_write": "Allows access to GET Monitor (Akamai Cloud Pulse) data.",
              "natgateways:read_only": "Allows access to Get NAT Gateways on your account.",
              "natgateways:read_write": "Allows access to all NAT Gateway endpoints.",
              "nodebalancers:read_only": "Allows access to GET NodeBalancers on your account.",
              "nodebalancers:read_write": "Allows access to all NodeBalancer endpoints.",
              "object_storage:read_only": "Allows access to GET information related to your Object Storage.",
              "object_storage:read_write": "Allows access to all Object Storage endpoints.",
              "stackscripts:read_only": "Allows access to GET your StackScripts.",
              "stackscripts:read_write": "Allows access to all endpoints related to your StackScripts.",
              "volumes:read_only": "Allows access to GET your Volumes.",
              "volumes:read_write": "Allows access to all endpoints related to your Volumes.",
              "vpc:read_write": "Allows access to all endpoints related to VPC and Subnet creation, updating, and deletion."
            },
            "tokenUrl": "https://login.linode.com/oauth/token"
          }
        },
        "type": "oauth2"
      },
      "personalAccessToken": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "externalDocs": {
    "description": "See documentation for Akamai's Linode API",
    "url": "https://techdocs.akamai.com/linode-api/reference"
  },
  "info": {
    "description": "\"[Read the API documentation](https://techdocs.akamai.com/linode-api/reference/api).\"",
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Networking",
    "version": "4.229.1"
  },
  "openapi": "3.0.1",
  "paths": {
    "/{apiVersion}/networking/ips/{address}": {
      "put": {
        "description": "Updates the configuration of an existing IP address. Use this operation to set Reverse DNS (RDNS) and to toggle the `reserved` status of an IPv4 address. You can update both the `reserved` status and the `rdns` field in a single request, if the IP is assigned to a Linode.\n\n__RDNS__:\n- Forward DNS must already be set up for reverse DNS to be applied.\n- If you set the `rdns` to `null` for public IPv4 addresses, it resets to the default `ip.linodeusercontent.com` RDNS value.\n- You can't set RDNS on an unassigned reserved IP. The IP must be assigned to a Linode to update its RDNS record.\n- If the IP address is assigned to a NAT Gateway, you can't configure reverse DNS. Setting the `rdns` property in your request payload under this condition will result in a 400 error.\n\n__Reserved IP__:\n- Setting `reserved` to `true` on an ephemeral IP converts it to a reserved IP.\n- Setting `reserved` to `false` on a reserved IP converts it to an ephemeral IP. If you convert an unassigned reserved IP to ephemeral, the IP is immediately released from your account. Unreserving this IP removes it from your reserved list and makes it unavailable to assign. This action can't be undone.\n- You can toggle the `reserved` status of IP addresses assigned to NAT Gateways.\n\n\n**Permissions and scopes**\n\nTo call this operation, you need the following:\n\n- **OAuth scopes**. Your user needs these scopes assigned. [Learn more](https://techdocs.akamai.com/linode-api/reference/get-started#oauth).\n\n  - Scopes: `ips:read_write`\n\n\n**CLI**\n\n```shell\nlinode-cli networking ip-update \\\n  203.0.113.1 \\\n  --rdns \"test.example.org\" \\\n  --reserved true\n```\n\n[Learn more](https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli)",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Linode API",
          "url": "https://techdocs.akamai.com/linode-api/reference/put-ip"
        },
        "operationId": "put-ip",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "rdns": "test.example.org",
                "reserved": true
              },
              "schema": {
                "additionalProperties": false,
                "properties": {
                  "rdns": {
                    "description": "The reverse DNS assigned to this address. For public IPv4 addresses, this will be set to a default value provided by Linode if not explicitly set.\n\nYou can't configure reverse DNS on IP addresses assigned to a NAT Gateway. Attempting to set this field on those addresses returns a 400 error.",
                    "example": "test.example.org",
                    "nullable": true,
                    "type": "string",
                    "x-linode-cli-display": 4
                  },
                  "reserved": {
                    "description": "The `reserved` status of an IPv4 address.\n  - Setting `reserved` to `true` on an ephemeral IP converts it to a reserved IP.\n  - Setting `reserved` to `false` on a reserved IP converts it to an ephemeral IP.",
                    "example": true,
                    "nullable": true,
                    "type": "boolean",
                    "x-linode-cli-display": 5
                  }
                },
                "type": "object",
                "x-akamai": {
                  "file-path": "schemas/added-put-ip.yaml"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "examples": {
                  "ex-1-1-nat": {
                    "summary": "1:1 NAT",
                    "value": {
                      "address": "172.24.113.218",
                      "assigned_entity": null,
                      "gateway": "172.24.113.1",
                      "interface_id": 456,
                      "linode_id": 123,
                      "prefix": 24,
                      "public": true,
                      "rdns": "test.example.org",
                      "region": "us-east",
                      "reserved": true,
                      "subnet_mask": "255.255.255.0",
                      "type": "ipv4",
                      "vpc_nat_1_1": {
                        "address": "192.168.0.42",
                        "subnet_id": 101,
                        "vpc_id": 111
                      }
                    }
                  },
                  "ex-natgateway": {
                    "summary": "NAT Gateway",
                    "value": {
                      "address": "203.0.113.33",
                      "assigned_entity": {
                        "id": 42,
                        "label": "my-natgateway",
                        "type": "natgateway",
                        "url": "/v4/networking/natgateways/42"
                      },
                      "gateway": "203.0.113.1",
                      "interface_id": null,
                      "linode_id": 0,
                      "prefix": 24,
                      "public": true,
                      "rdns": "test.example.org",
                      "region": "us-east",
                      "reserved": true,
                      "subnet_mask": "255.255.255.0",
                      "type": "ipv4",
                      "vpc_nat_1_1": null
                    }
                  }
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "An IP address that exists in Linode's system, either IPv4 or IPv6.",
                  "properties": {
                    "address": {
                      "description": "__Read-only__ The IP address.",
                      "example": "97.107.143.141",
                      "format": "ip",
                      "readOnly": true,
                      "type": "string",
                      "x-linode-cli-display": 1
                    },
                    "assigned_entity": {
                      "additionalProperties": false,
                      "description": "__Read-only__ Identifies which resource a specific IP address is currently attached to.",
                      "nullable": true,
                      "properties": {
                        "id": {
                          "description": "The unique identifier for the resource.",
                          "example": 1234,
                          "type": "integer"
                        },
                        "label": {
                          "description": "The name of the entity.",
                          "example": "demo-linode",
                          "type": "string"
                        },
                        "type": {
                          "description": "The type of entity, either `linode`, `nodebalancer`, or `natgateway`.",
                          "enum": [
                            "linode",
                            "nodebalancer",
                            "natgateway"
                          ],
                          "example": "nodebalancer",
                          "type": "string"
                        },
                        "url": {
                          "description": "The API URL path you can use to access this entity.",
                          "example": "/v4/nodebalancer/1234",
                          "format": "uri-reference",
                          "type": "string"
                        }
                      },
                      "readOnly": true,
                      "type": "object",
                      "x-linode-cli-display": 10
                    },
                    "gateway": {
                      "description": "__Read-only__ The default gateway for this address.",
                      "example": "97.107.143.1",
                      "format": "ip",
                      "nullable": true,
                      "readOnly": true,
                      "type": "string"
                    },
                    "interface_id": {
                      "description": "__Read-only__ The Linode interface ID that this IP address is assigned to. This value is `null` if a Linode interface is not assigned, or if the IP is assigned to a legacy configuration profile interface.",
                      "example": 456,
                      "nullable": true,
                      "readOnly": true,
                      "type": "integer",
                      "x-linode-cli-display": 7
                    },
                    "linode_id": {
                      "description": "__Read-only__ The ID of the Linode this address currently belongs to. For IPv4 addresses, this is by default the Linode that this address was assigned to on creation, and these addresses may be moved using the [Assign IPv4s to Linodes](ref:post-assign-ipv4s) operation. For SLAAC and link-local addresses, this value can't be changed.\n\nIf this IP address is assigned to a non-Linode resource, such as a NodeBalancer or a NAT Gateway, this value returns `0`. ",
                      "example": 123,
                      "readOnly": true,
                      "type": "integer",
                      "x-linode-cli-display": 6
                    },
                    "prefix": {
                      "description": "__Read-only__ The number of bits set in the subnet mask.",
                      "example": 24,
                      "readOnly": true,
                      "type": "integer"
                    },
                    "public": {
                      "description": "__Read-only__ Whether this is a public or private IP address.",
                      "example": true,
                      "readOnly": true,
                      "type": "boolean",
                      "x-linode-cli-display": 3
                    },
                    "rdns": {
                      "description": "The reverse DNS assigned to this address. For public IPv4 addresses, this will be set to a default value provided by Linode if not explicitly set.",
                      "example": "test.example.org",
                      "nullable": true,
                      "type": "string",
                      "x-linode-cli-display": 4
                    },
                    "region": {
                      "description": "__Read-only__ The region this IP address resides in.",
                      "example": "us-east",
                      "readOnly": true,
                      "type": "string",
                      "x-linode-cli-display": 5
                    },
                    "reserved": {
                      "description": "__Filterable__, __Read-only__ Indicates whether this public IPv4 address is a reserved IP. Unlike ephemeral addresses, a reserved IP is a persistent, static address that remains assigned to your account even if the associated resource is deleted.",
                      "example": true,
                      "readOnly": true,
                      "type": "boolean",
                      "x-akamai": {
                        "labels": [
                          "Filterable"
                        ]
                      },
                      "x-linode-cli-display": 8
                    },
                    "subnet_mask": {
                      "description": "__Read-only__ The mask that separates host bits from network bits for this address.",
                      "example": "255.255.255.0",
                      "format": "ip",
                      "readOnly": true,
                      "type": "string"
                    },
                    "tags": {
                      "description": "__Filterable__, __Read-only__ A list of tags that apply to this IP.",
                      "example": [
                        "NB1",
                        "Linode1"
                      ],
                      "items": {
                        "type": "string"
                      },
                      "readOnly": true,
                      "type": "array",
                      "x-akamai": {
                        "labels": [
                          "Filterable"
                        ]
                      },
                      "x-linode-cli-display": 9
                    },
                    "type": {
                      "description": "__Read-only__ The type of address, either `ipv4`, `ipv6`, `ipv6/pool`, or `ipv6/range`. To learn more about these types, see the [Manage IP addresses on a Linode](https://techdocs.akamai.com/cloud-computing/docs/managing-ip-addresses-on-a-compute-instance) guide.",
                      "enum": [
                        "ipv4",
                        "ipv6",
                        "ipv6/pool",
                        "ipv6/range"
                      ],
                      "example": "ipv4",
                      "readOnly": true,
                      "type": "string",
                      "x-linode-cli-display": 2
                    },
                    "vpc_nat_1_1": {
                      "additionalProperties": false,
                      "description": "IPv4 address configured as a 1:1 NAT for this Interface. If no address is configured as a 1:1 NAT, `null` is returned.\n\n> 📘\n>\n> Only allowed for `vpc` type interfaces.",
                      "properties": {
                        "address": {
                          "description": "The IPv4 address that is configured as a 1:1 NAT for this VPC interface.",
                          "example": "192.168.0.42",
                          "format": "ipv4",
                          "type": "string"
                        },
                        "subnet_id": {
                          "description": "The `id` of the VPC Subnet for this interface.",
                          "example": 101,
                          "nullable": false,
                          "type": "integer"
                        },
                        "vpc_id": {
                          "description": "__Read-only__ The `id` of the VPC configured for this interface.",
                          "example": 111,
                          "nullable": false,
                          "readOnly": true,
                          "type": "integer"
                        }
                      },
                      "type": "object"
                    }
                  },
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/ip-address.yaml"
                  }
                },
                "x-linode-cli-use-schema": {
                  "additionalProperties": false,
                  "properties": {
                    "address": {
                      "x-linode-cli-display": 1
                    },
                    "interface_id": {
                      "x-linode-cli-display": 7
                    },
                    "linode_id": {
                      "x-linode-cli-display": 6
                    },
                    "public": {
                      "x-linode-cli-display": 3
                    },
                    "rdns": {
                      "x-linode-cli-display": 4
                    },
                    "region": {
                      "x-linode-cli-display": 5
                    },
                    "reserved": {
                      "x-linode-cli-display": 8
                    },
                    "type": {
                      "x-linode-cli-display": 2
                    }
                  },
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/ip-address-cli.yaml"
                  }
                }
              }
            },
            "description": "RDNS and reserved IP set successfully."
          },
          "default": {
            "content": {
              "application/json": {
                "example": {
                  "errors": [
                    {
                      "reason": "Invalid JSON"
                    }
                  ]
                },
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "errors": {
                      "description": "Any warnings associated with a response.",
                      "items": {
                        "additionalProperties": false,
                        "description": "An object for describing a single error that occurred during the processing of a request.",
                        "properties": {
                          "field": {
                            "description": "The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as `null` if the error is not specific to any single element of the request.",
                            "example": "fieldname",
                            "type": "string"
                          },
                          "reason": {
                            "description": "What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to [Open a support ticket](ref:post-ticket) or perform some other action before you can complete the request successfully.",
                            "example": "fieldname must be a valid value",
                            "type": "string"
                          }
                        },
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/error-object.yaml"
                        }
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "See [Errors](ref:errors) for the range of possible error response codes."
          }
        },
        "security": [
          {
            "personalAccessToken": []
          },
          {
            "oauth": [
              "ips:read_write"
            ]
          }
        ],
        "summary": "Update an IP address",
        "tags": [
          "IP addresses"
        ],
        "x-akamai": {
          "tabs": [
            {
              "syntax": "linode-cli networking ip-update \\\n  203.0.113.1 \\\n  --rdns \"test.example.org\" \\\n  --reserved true",
              "title": "CLI",
              "url": "https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli"
            },
            {
              "syntax": "ips:read_write",
              "title": "OAuth scopes",
              "url": "https://techdocs.akamai.com/linode-api/reference/get-started#oauth"
            }
          ]
        },
        "x-linode-cli-action": "ip-update",
        "x-linode-grant": "read_write"
      },
      "parameters": [
        {
          "description": "__Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta.",
          "in": "path",
          "name": "apiVersion",
          "required": true,
          "schema": {
            "enum": [
              "v4",
              "v4beta"
            ],
            "example": "v4",
            "type": "string"
          },
          "x-akamai": {
            "file-path": "parameters/api-version-path.yaml"
          }
        },
        {
          "description": "The address to operate on.",
          "in": "path",
          "name": "address",
          "required": true,
          "schema": {
            "example": "192.0.2.49",
            "format": "ip",
            "type": "string"
          },
          "x-akamai": {
            "file-path": "parameters/address-path-e209a4cb.yaml"
          }
        }
      ],
      "x-akamai": {
        "file-path": "paths/networking-ip-address.yaml",
        "path-info": "/{apiVersion}/networking/ips/{address}"
      },
      "x-linode-cli-command": "networking"
    }
  },
  "servers": [
    {
      "url": "https://api.linode.com"
    }
  ],
  "x-akamai": {
    "auth-type": "OAUTH",
    "file-path": "networking.yaml"
  },
  "x-readme": {
    "apply-tag-changes": true,
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "python",
      "node"
    ]
  }
}
````

# Sibling pages

* [Allocate an IP address](https://techdocs.akamai.com/linode-api/reference/post-allocate-ip.md)
* [List IP addresses](https://techdocs.akamai.com/linode-api/reference/get-ips.md)
* [Assign IP addresses](https://techdocs.akamai.com/linode-api/reference/post-assign-ips.md)
* [Share IP addresses](https://techdocs.akamai.com/linode-api/reference/post-share-ips.md)
* [Get an IP address](https://techdocs.akamai.com/linode-api/reference/get-ip.md)