published on Wednesday, Apr 15, 2026 by ionos-cloud
published on Wednesday, Apr 15, 2026 by ionos-cloud
Manages a DNS Reverse Record.
⚠️ Only tokens are accepted for authorization in the ionoscloud_dns_reverse_record resource. Please ensure you are using tokens as other methods will not be valid.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
const example = new ionoscloud.compute.IPBlock("example", {
location: "de/fra",
size: 1,
name: "example_ipblock",
});
const recordexample = new ionoscloud.DnsReverseRecord("recordexample", {
name: "reverse.record.example.com",
description: "example description",
ip: example.ips[0],
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.compute.IPBlock("example",
location="de/fra",
size=1,
name="example_ipblock")
recordexample = ionoscloud.DnsReverseRecord("recordexample",
name="reverse.record.example.com",
description="example description",
ip=example.ips[0])
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud"
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := compute.NewIPBlock(ctx, "example", &compute.IPBlockArgs{
Location: pulumi.String("de/fra"),
Size: pulumi.Int(1),
Name: pulumi.String("example_ipblock"),
})
if err != nil {
return err
}
_, err = ionoscloud.NewDnsReverseRecord(ctx, "recordexample", &ionoscloud.DnsReverseRecordArgs{
Name: pulumi.String("reverse.record.example.com"),
Description: pulumi.String("example description"),
Ip: example.Ips.ApplyT(func(ips []string) (string, error) {
return ips[0], nil
}).(pulumi.StringOutput),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = new Ionoscloud.Compute.IPBlock("example", new()
{
Location = "de/fra",
Size = 1,
Name = "example_ipblock",
});
var recordexample = new Ionoscloud.Index.DnsReverseRecord("recordexample", new()
{
Name = "reverse.record.example.com",
Description = "example description",
Ip = example.Ips.Apply(ips => ips[0]),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.ionoscloud.pulumi.ionoscloud.compute.IPBlock;
import com.ionoscloud.pulumi.ionoscloud.compute.IPBlockArgs;
import com.ionoscloud.pulumi.ionoscloud.DnsReverseRecord;
import com.ionoscloud.pulumi.ionoscloud.DnsReverseRecordArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new IPBlock("example", IPBlockArgs.builder()
.location("de/fra")
.size(1)
.name("example_ipblock")
.build());
var recordexample = new DnsReverseRecord("recordexample", DnsReverseRecordArgs.builder()
.name("reverse.record.example.com")
.description("example description")
.ip(example.ips().applyValue(_ips -> _ips[0]))
.build());
}
}
resources:
example:
type: ionoscloud:compute:IPBlock
properties:
location: de/fra
size: 1
name: example_ipblock
recordexample:
type: ionoscloud:DnsReverseRecord
properties:
name: reverse.record.example.com
description: example description
ip: ${example.ips[0]}
Example coming soon!
Create DnsReverseRecord Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DnsReverseRecord(name: string, args: DnsReverseRecordArgs, opts?: CustomResourceOptions);@overload
def DnsReverseRecord(resource_name: str,
args: DnsReverseRecordArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DnsReverseRecord(resource_name: str,
opts: Optional[ResourceOptions] = None,
ip: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None)func NewDnsReverseRecord(ctx *Context, name string, args DnsReverseRecordArgs, opts ...ResourceOption) (*DnsReverseRecord, error)public DnsReverseRecord(string name, DnsReverseRecordArgs args, CustomResourceOptions? opts = null)
public DnsReverseRecord(String name, DnsReverseRecordArgs args)
public DnsReverseRecord(String name, DnsReverseRecordArgs args, CustomResourceOptions options)
type: ionoscloud:DnsReverseRecord
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "ionoscloud_dnsreverserecord" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DnsReverseRecordArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DnsReverseRecordArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DnsReverseRecordArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DnsReverseRecordArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DnsReverseRecordArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dnsReverseRecordResource = new Ionoscloud.DnsReverseRecord("dnsReverseRecordResource", new()
{
Ip = "string",
Description = "string",
Name = "string",
});
example, err := ionoscloud.NewDnsReverseRecord(ctx, "dnsReverseRecordResource", &ionoscloud.DnsReverseRecordArgs{
Ip: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
resource "ionoscloud_dnsreverserecord" "dnsReverseRecordResource" {
ip = "string"
description = "string"
name = "string"
}
var dnsReverseRecordResource = new DnsReverseRecord("dnsReverseRecordResource", DnsReverseRecordArgs.builder()
.ip("string")
.description("string")
.name("string")
.build());
dns_reverse_record_resource = ionoscloud.DnsReverseRecord("dnsReverseRecordResource",
ip="string",
description="string",
name="string")
const dnsReverseRecordResource = new ionoscloud.DnsReverseRecord("dnsReverseRecordResource", {
ip: "string",
description: "string",
name: "string",
});
type: ionoscloud:DnsReverseRecord
properties:
description: string
ip: string
name: string
DnsReverseRecord Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DnsReverseRecord resource accepts the following input properties:
- Ip string
- [string] Specifies for which IP address the reverse record should be created. The IP addresses needs to be owned by the contract.
- Description string
- [string] Description stored along with the reverse DNS record to describe its usage.
- Name string
- [string] The reverse DNS record name.
- Ip string
- [string] Specifies for which IP address the reverse record should be created. The IP addresses needs to be owned by the contract.
- Description string
- [string] Description stored along with the reverse DNS record to describe its usage.
- Name string
- [string] The reverse DNS record name.
- ip string
- [string] Specifies for which IP address the reverse record should be created. The IP addresses needs to be owned by the contract.
- description string
- [string] Description stored along with the reverse DNS record to describe its usage.
- name string
- [string] The reverse DNS record name.
- ip String
- [string] Specifies for which IP address the reverse record should be created. The IP addresses needs to be owned by the contract.
- description String
- [string] Description stored along with the reverse DNS record to describe its usage.
- name String
- [string] The reverse DNS record name.
- ip string
- [string] Specifies for which IP address the reverse record should be created. The IP addresses needs to be owned by the contract.
- description string
- [string] Description stored along with the reverse DNS record to describe its usage.
- name string
- [string] The reverse DNS record name.
- ip str
- [string] Specifies for which IP address the reverse record should be created. The IP addresses needs to be owned by the contract.
- description str
- [string] Description stored along with the reverse DNS record to describe its usage.
- name str
- [string] The reverse DNS record name.
- ip String
- [string] Specifies for which IP address the reverse record should be created. The IP addresses needs to be owned by the contract.
- description String
- [string] Description stored along with the reverse DNS record to describe its usage.
- name String
- [string] The reverse DNS record name.
Outputs
All input properties are implicitly available as output properties. Additionally, the DnsReverseRecord resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DnsReverseRecord Resource
Get an existing DnsReverseRecord resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DnsReverseRecordState, opts?: CustomResourceOptions): DnsReverseRecord@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
ip: Optional[str] = None,
name: Optional[str] = None) -> DnsReverseRecordfunc GetDnsReverseRecord(ctx *Context, name string, id IDInput, state *DnsReverseRecordState, opts ...ResourceOption) (*DnsReverseRecord, error)public static DnsReverseRecord Get(string name, Input<string> id, DnsReverseRecordState? state, CustomResourceOptions? opts = null)public static DnsReverseRecord get(String name, Output<String> id, DnsReverseRecordState state, CustomResourceOptions options)resources: _: type: ionoscloud:DnsReverseRecord get: id: ${id}import {
to = ionoscloud_dnsreverserecord.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description string
- [string] Description stored along with the reverse DNS record to describe its usage.
- Ip string
- [string] Specifies for which IP address the reverse record should be created. The IP addresses needs to be owned by the contract.
- Name string
- [string] The reverse DNS record name.
- Description string
- [string] Description stored along with the reverse DNS record to describe its usage.
- Ip string
- [string] Specifies for which IP address the reverse record should be created. The IP addresses needs to be owned by the contract.
- Name string
- [string] The reverse DNS record name.
- description string
- [string] Description stored along with the reverse DNS record to describe its usage.
- ip string
- [string] Specifies for which IP address the reverse record should be created. The IP addresses needs to be owned by the contract.
- name string
- [string] The reverse DNS record name.
- description String
- [string] Description stored along with the reverse DNS record to describe its usage.
- ip String
- [string] Specifies for which IP address the reverse record should be created. The IP addresses needs to be owned by the contract.
- name String
- [string] The reverse DNS record name.
- description string
- [string] Description stored along with the reverse DNS record to describe its usage.
- ip string
- [string] Specifies for which IP address the reverse record should be created. The IP addresses needs to be owned by the contract.
- name string
- [string] The reverse DNS record name.
- description str
- [string] Description stored along with the reverse DNS record to describe its usage.
- ip str
- [string] Specifies for which IP address the reverse record should be created. The IP addresses needs to be owned by the contract.
- name str
- [string] The reverse DNS record name.
- description String
- [string] Description stored along with the reverse DNS record to describe its usage.
- ip String
- [string] Specifies for which IP address the reverse record should be created. The IP addresses needs to be owned by the contract.
- name String
- [string] The reverse DNS record name.
Import
In order to import a DNS Reverse Record, you can define an empty DNS Reverse Record resource in the plan:
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
const example = new ionoscloud.DnsReverseRecord("example", {});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.DnsReverseRecord("example")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = new Ionoscloud.Index.DnsReverseRecord("example");
});
package main
import (
"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ionoscloud.NewDnsReverseRecord(ctx, "example", nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.ionoscloud.pulumi.ionoscloud.DnsReverseRecord;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new DnsReverseRecord("example");
}
}
resources:
example:
type: ionoscloud:DnsReverseRecord
The resource can be imported using the recordId, for example:
$ pulumi import ionoscloud:index/dnsReverseRecord:DnsReverseRecord example record_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ionoscloud ionos-cloud/pulumi-ionoscloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ionoscloudTerraform Provider.
published on Wednesday, Apr 15, 2026 by ionos-cloud
