-
Notifications
You must be signed in to change notification settings - Fork 260
fix(ipam): add doc for reverse IPv6 #4662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| --- | ||
| meta: | ||
| title: IPAM - API/CLI Documentation | ||
| description: IPAM API/CLI Documentation | ||
| content: | ||
| h1: IPAM - API/CLI Documentation | ||
| paragraph: IPAM API/CLI Documentation | ||
| --- | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| --- | ||
| meta: | ||
| title: Setting a reverse IPv6 DNS record via the IPAM API | ||
| description: This page explains how to set a reverse DNS record for an IPv6 address via the IPAM API | ||
| content: | ||
| h1: Setting a reverse IPv6 DNS record via the IPAM API | ||
| paragraph: This page explains how to set a reverse DNS record for an IPv6 address via the IPAM API | ||
| tags: ipv6 reverse dns instance eui-64 | ||
| categories: | ||
| - network | ||
| dates: | ||
| validation: 2025-03-19 | ||
| posted: 2025-03-19 | ||
| --- | ||
|
|
||
| The Scaleway console allows you to [configure reverse DNS](/instances/how-to/configure-reverse-dns/) for flexible IP addresses. | ||
|
|
||
| For IPv4 addresses, the console functionality is convenient. However, for IPv6 addresses the console only allows you to configure a single reverse DNS record for the entire /64 block, and not individual addresses within the block. | ||
|
|
||
| You can solve this problem by using the IPAM API to set reverse DNS for individual addresses within your IPv6 block. IPAM is Scaleway's IP Address Manager tool, which acts as a single source of truth for all Scaleway IP addresses. | ||
|
|
||
| <Macro id="requirements" /> | ||
|
|
||
| - A Scaleway account logged into the [console](https://console.scaleway.com) | ||
| - [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization | ||
| - A public IPv6 address for an IPAM-compatible Scaleway resource (e.g an Instance) | ||
|
|
||
| Use the [update an IP](https://www.scaleway.com/en/developers/api/ipam/#path-ips-update-an-ip) call to set the reverse of the desired IPv6 addresses. An example call is shown below. Replace `<ip-id>` with your flexible IPv6 address's IP ID, and modify the payload according to the domains and addresses you want to configure. | ||
|
|
||
| <Message type="tip"> | ||
| To find the IP ID for your address, use the [IPAM: List IPs](https://www.scaleway.com/en/developers/api/ipam/#path-ips-list-existing-ips) call. | ||
| </Message> | ||
|
|
||
| ``` | ||
| curl -X PATCH \ | ||
| -H "X-Auth-Token: $SCW_SECRET_KEY" \ | ||
| -H "Content-Type: application/json" \ | ||
| "https://api.scaleway.com/ipam/v1/regions/fr-par/ips/{ip_id}" \ | ||
| -d '{ | ||
| "reverses":[ | ||
| { | ||
| "hostname":"reverse1.example.com", | ||
| "address":"2001:bc8:710:5c6f::1" | ||
RoRoJ marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| { | ||
| "hostname":"reverse2.example.com", | ||
| "address":"2001:bc8:710:5c6f::2" | ||
RoRoJ marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| { | ||
| "hostname":"reverse3.example.com", | ||
| "address":"2001:bc8:710:5c6f::3" | ||
RoRoJ marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
| ] | ||
| }' | ||
| ``` | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.