published on Tuesday, Feb 17, 2026 by Pulumiverse
published on Tuesday, Feb 17, 2026 by Pulumiverse
The unifi.DynamicDNS resource manages Dynamic DNS (DDNS).
Dynamic DNS allows you to access your network using a domain name even when your public IP address changes. This is useful for:
- Remote access to your network
- Hosting services from your home/office network
- VPN connections to your network
The resource supports various DDNS providers including:
- DynDNS
- No-IP
- Duck DNS
- And many others
Each DDNS configuration can be associated with either the primary (WAN) or secondary (WAN2) interface.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as unifi from "@pulumiverse/unifi";
const test = new unifi.DynamicDNS("test", {
service: "dyndns",
hostName: "my-network.example.com",
server: "domains.google.com",
login: dnsLogin,
password: dnsPassword,
});
import pulumi
import pulumiverse_unifi as unifi
test = unifi.DynamicDNS("test",
service="dyndns",
host_name="my-network.example.com",
server="domains.google.com",
login=dns_login,
password=dns_password)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-unifi/sdk/go/unifi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := unifi.NewDynamicDNS(ctx, "test", &unifi.DynamicDNSArgs{
Service: pulumi.String("dyndns"),
HostName: pulumi.String("my-network.example.com"),
Server: pulumi.String("domains.google.com"),
Login: pulumi.Any(dnsLogin),
Password: pulumi.Any(dnsPassword),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Unifi = Pulumiverse.Unifi;
return await Deployment.RunAsync(() =>
{
var test = new Unifi.DynamicDNS("test", new()
{
Service = "dyndns",
HostName = "my-network.example.com",
Server = "domains.google.com",
Login = dnsLogin,
Password = dnsPassword,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumiverse.unifi.DynamicDNS;
import com.pulumiverse.unifi.DynamicDNSArgs;
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 test = new DynamicDNS("test", DynamicDNSArgs.builder()
.service("dyndns")
.hostName("my-network.example.com")
.server("domains.google.com")
.login(dnsLogin)
.password(dnsPassword)
.build());
}
}
resources:
test:
type: unifi:DynamicDNS
properties:
service: dyndns
hostName: my-network.example.com
server: domains.google.com
login: ${dnsLogin}
password: ${dnsPassword}
Create DynamicDNS Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DynamicDNS(name: string, args: DynamicDNSArgs, opts?: CustomResourceOptions);@overload
def DynamicDNS(resource_name: str,
args: DynamicDNSArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DynamicDNS(resource_name: str,
opts: Optional[ResourceOptions] = None,
host_name: Optional[str] = None,
service: Optional[str] = None,
interface: Optional[str] = None,
login: Optional[str] = None,
password: Optional[str] = None,
server: Optional[str] = None,
site: Optional[str] = None)func NewDynamicDNS(ctx *Context, name string, args DynamicDNSArgs, opts ...ResourceOption) (*DynamicDNS, error)public DynamicDNS(string name, DynamicDNSArgs args, CustomResourceOptions? opts = null)
public DynamicDNS(String name, DynamicDNSArgs args)
public DynamicDNS(String name, DynamicDNSArgs args, CustomResourceOptions options)
type: unifi:DynamicDNS
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DynamicDNSArgs
- 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 DynamicDNSArgs
- 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 DynamicDNSArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DynamicDNSArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DynamicDNSArgs
- 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 dynamicDNSResource = new Unifi.DynamicDNS("dynamicDNSResource", new()
{
HostName = "string",
Service = "string",
Interface = "string",
Login = "string",
Password = "string",
Server = "string",
Site = "string",
});
example, err := unifi.NewDynamicDNS(ctx, "dynamicDNSResource", &unifi.DynamicDNSArgs{
HostName: pulumi.String("string"),
Service: pulumi.String("string"),
Interface: pulumi.String("string"),
Login: pulumi.String("string"),
Password: pulumi.String("string"),
Server: pulumi.String("string"),
Site: pulumi.String("string"),
})
var dynamicDNSResource = new DynamicDNS("dynamicDNSResource", DynamicDNSArgs.builder()
.hostName("string")
.service("string")
.interface_("string")
.login("string")
.password("string")
.server("string")
.site("string")
.build());
dynamic_dns_resource = unifi.DynamicDNS("dynamicDNSResource",
host_name="string",
service="string",
interface="string",
login="string",
password="string",
server="string",
site="string")
const dynamicDNSResource = new unifi.DynamicDNS("dynamicDNSResource", {
hostName: "string",
service: "string",
"interface": "string",
login: "string",
password: "string",
server: "string",
site: "string",
});
type: unifi:DynamicDNS
properties:
hostName: string
interface: string
login: string
password: string
server: string
service: string
site: string
DynamicDNS 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 DynamicDNS resource accepts the following input properties:
- Host
Name string - The fully qualified domain name to update with your current public IP address (e.g., 'myhouse.dyndns.org' or 'myoffice.no-ip.com').
- Service string
- The Dynamic DNS service provider. Common values include:
dyndns- DynDNS servicenoip- No-IP serviceduckdns- Duck DNS service Check your UniFi controller for the complete list of supported providers.
- Interface string
- The WAN interface to use for the dynamic DNS updates. Valid values are:
wan- Primary WAN interface (default)wan2- Secondary WAN interface
- Login string
- The username or login for your DDNS provider account.
- Password string
- The password or token for your DDNS provider account. This value will be stored securely and not displayed in logs.
- Server string
- The update server hostname for your DDNS provider. Usually not required as the UniFi controller knows the correct servers for common providers.
- Site string
- The name of the UniFi site where the dynamic DNS configuration should be created. If not specified, the default site will be used.
- Host
Name string - The fully qualified domain name to update with your current public IP address (e.g., 'myhouse.dyndns.org' or 'myoffice.no-ip.com').
- Service string
- The Dynamic DNS service provider. Common values include:
dyndns- DynDNS servicenoip- No-IP serviceduckdns- Duck DNS service Check your UniFi controller for the complete list of supported providers.
- Interface string
- The WAN interface to use for the dynamic DNS updates. Valid values are:
wan- Primary WAN interface (default)wan2- Secondary WAN interface
- Login string
- The username or login for your DDNS provider account.
- Password string
- The password or token for your DDNS provider account. This value will be stored securely and not displayed in logs.
- Server string
- The update server hostname for your DDNS provider. Usually not required as the UniFi controller knows the correct servers for common providers.
- Site string
- The name of the UniFi site where the dynamic DNS configuration should be created. If not specified, the default site will be used.
- host
Name String - The fully qualified domain name to update with your current public IP address (e.g., 'myhouse.dyndns.org' or 'myoffice.no-ip.com').
- service String
- The Dynamic DNS service provider. Common values include:
dyndns- DynDNS servicenoip- No-IP serviceduckdns- Duck DNS service Check your UniFi controller for the complete list of supported providers.
- interface_ String
- The WAN interface to use for the dynamic DNS updates. Valid values are:
wan- Primary WAN interface (default)wan2- Secondary WAN interface
- login String
- The username or login for your DDNS provider account.
- password String
- The password or token for your DDNS provider account. This value will be stored securely and not displayed in logs.
- server String
- The update server hostname for your DDNS provider. Usually not required as the UniFi controller knows the correct servers for common providers.
- site String
- The name of the UniFi site where the dynamic DNS configuration should be created. If not specified, the default site will be used.
- host
Name string - The fully qualified domain name to update with your current public IP address (e.g., 'myhouse.dyndns.org' or 'myoffice.no-ip.com').
- service string
- The Dynamic DNS service provider. Common values include:
dyndns- DynDNS servicenoip- No-IP serviceduckdns- Duck DNS service Check your UniFi controller for the complete list of supported providers.
- interface string
- The WAN interface to use for the dynamic DNS updates. Valid values are:
wan- Primary WAN interface (default)wan2- Secondary WAN interface
- login string
- The username or login for your DDNS provider account.
- password string
- The password or token for your DDNS provider account. This value will be stored securely and not displayed in logs.
- server string
- The update server hostname for your DDNS provider. Usually not required as the UniFi controller knows the correct servers for common providers.
- site string
- The name of the UniFi site where the dynamic DNS configuration should be created. If not specified, the default site will be used.
- host_
name str - The fully qualified domain name to update with your current public IP address (e.g., 'myhouse.dyndns.org' or 'myoffice.no-ip.com').
- service str
- The Dynamic DNS service provider. Common values include:
dyndns- DynDNS servicenoip- No-IP serviceduckdns- Duck DNS service Check your UniFi controller for the complete list of supported providers.
- interface str
- The WAN interface to use for the dynamic DNS updates. Valid values are:
wan- Primary WAN interface (default)wan2- Secondary WAN interface
- login str
- The username or login for your DDNS provider account.
- password str
- The password or token for your DDNS provider account. This value will be stored securely and not displayed in logs.
- server str
- The update server hostname for your DDNS provider. Usually not required as the UniFi controller knows the correct servers for common providers.
- site str
- The name of the UniFi site where the dynamic DNS configuration should be created. If not specified, the default site will be used.
- host
Name String - The fully qualified domain name to update with your current public IP address (e.g., 'myhouse.dyndns.org' or 'myoffice.no-ip.com').
- service String
- The Dynamic DNS service provider. Common values include:
dyndns- DynDNS servicenoip- No-IP serviceduckdns- Duck DNS service Check your UniFi controller for the complete list of supported providers.
- interface String
- The WAN interface to use for the dynamic DNS updates. Valid values are:
wan- Primary WAN interface (default)wan2- Secondary WAN interface
- login String
- The username or login for your DDNS provider account.
- password String
- The password or token for your DDNS provider account. This value will be stored securely and not displayed in logs.
- server String
- The update server hostname for your DDNS provider. Usually not required as the UniFi controller knows the correct servers for common providers.
- site String
- The name of the UniFi site where the dynamic DNS configuration should be created. If not specified, the default site will be used.
Outputs
All input properties are implicitly available as output properties. Additionally, the DynamicDNS 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 str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DynamicDNS Resource
Get an existing DynamicDNS 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?: DynamicDNSState, opts?: CustomResourceOptions): DynamicDNS@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
host_name: Optional[str] = None,
interface: Optional[str] = None,
login: Optional[str] = None,
password: Optional[str] = None,
server: Optional[str] = None,
service: Optional[str] = None,
site: Optional[str] = None) -> DynamicDNSfunc GetDynamicDNS(ctx *Context, name string, id IDInput, state *DynamicDNSState, opts ...ResourceOption) (*DynamicDNS, error)public static DynamicDNS Get(string name, Input<string> id, DynamicDNSState? state, CustomResourceOptions? opts = null)public static DynamicDNS get(String name, Output<String> id, DynamicDNSState state, CustomResourceOptions options)resources: _: type: unifi:DynamicDNS get: 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.
- Host
Name string - The fully qualified domain name to update with your current public IP address (e.g., 'myhouse.dyndns.org' or 'myoffice.no-ip.com').
- Interface string
- The WAN interface to use for the dynamic DNS updates. Valid values are:
wan- Primary WAN interface (default)wan2- Secondary WAN interface
- Login string
- The username or login for your DDNS provider account.
- Password string
- The password or token for your DDNS provider account. This value will be stored securely and not displayed in logs.
- Server string
- The update server hostname for your DDNS provider. Usually not required as the UniFi controller knows the correct servers for common providers.
- Service string
- The Dynamic DNS service provider. Common values include:
dyndns- DynDNS servicenoip- No-IP serviceduckdns- Duck DNS service Check your UniFi controller for the complete list of supported providers.
- Site string
- The name of the UniFi site where the dynamic DNS configuration should be created. If not specified, the default site will be used.
- Host
Name string - The fully qualified domain name to update with your current public IP address (e.g., 'myhouse.dyndns.org' or 'myoffice.no-ip.com').
- Interface string
- The WAN interface to use for the dynamic DNS updates. Valid values are:
wan- Primary WAN interface (default)wan2- Secondary WAN interface
- Login string
- The username or login for your DDNS provider account.
- Password string
- The password or token for your DDNS provider account. This value will be stored securely and not displayed in logs.
- Server string
- The update server hostname for your DDNS provider. Usually not required as the UniFi controller knows the correct servers for common providers.
- Service string
- The Dynamic DNS service provider. Common values include:
dyndns- DynDNS servicenoip- No-IP serviceduckdns- Duck DNS service Check your UniFi controller for the complete list of supported providers.
- Site string
- The name of the UniFi site where the dynamic DNS configuration should be created. If not specified, the default site will be used.
- host
Name String - The fully qualified domain name to update with your current public IP address (e.g., 'myhouse.dyndns.org' or 'myoffice.no-ip.com').
- interface_ String
- The WAN interface to use for the dynamic DNS updates. Valid values are:
wan- Primary WAN interface (default)wan2- Secondary WAN interface
- login String
- The username or login for your DDNS provider account.
- password String
- The password or token for your DDNS provider account. This value will be stored securely and not displayed in logs.
- server String
- The update server hostname for your DDNS provider. Usually not required as the UniFi controller knows the correct servers for common providers.
- service String
- The Dynamic DNS service provider. Common values include:
dyndns- DynDNS servicenoip- No-IP serviceduckdns- Duck DNS service Check your UniFi controller for the complete list of supported providers.
- site String
- The name of the UniFi site where the dynamic DNS configuration should be created. If not specified, the default site will be used.
- host
Name string - The fully qualified domain name to update with your current public IP address (e.g., 'myhouse.dyndns.org' or 'myoffice.no-ip.com').
- interface string
- The WAN interface to use for the dynamic DNS updates. Valid values are:
wan- Primary WAN interface (default)wan2- Secondary WAN interface
- login string
- The username or login for your DDNS provider account.
- password string
- The password or token for your DDNS provider account. This value will be stored securely and not displayed in logs.
- server string
- The update server hostname for your DDNS provider. Usually not required as the UniFi controller knows the correct servers for common providers.
- service string
- The Dynamic DNS service provider. Common values include:
dyndns- DynDNS servicenoip- No-IP serviceduckdns- Duck DNS service Check your UniFi controller for the complete list of supported providers.
- site string
- The name of the UniFi site where the dynamic DNS configuration should be created. If not specified, the default site will be used.
- host_
name str - The fully qualified domain name to update with your current public IP address (e.g., 'myhouse.dyndns.org' or 'myoffice.no-ip.com').
- interface str
- The WAN interface to use for the dynamic DNS updates. Valid values are:
wan- Primary WAN interface (default)wan2- Secondary WAN interface
- login str
- The username or login for your DDNS provider account.
- password str
- The password or token for your DDNS provider account. This value will be stored securely and not displayed in logs.
- server str
- The update server hostname for your DDNS provider. Usually not required as the UniFi controller knows the correct servers for common providers.
- service str
- The Dynamic DNS service provider. Common values include:
dyndns- DynDNS servicenoip- No-IP serviceduckdns- Duck DNS service Check your UniFi controller for the complete list of supported providers.
- site str
- The name of the UniFi site where the dynamic DNS configuration should be created. If not specified, the default site will be used.
- host
Name String - The fully qualified domain name to update with your current public IP address (e.g., 'myhouse.dyndns.org' or 'myoffice.no-ip.com').
- interface String
- The WAN interface to use for the dynamic DNS updates. Valid values are:
wan- Primary WAN interface (default)wan2- Secondary WAN interface
- login String
- The username or login for your DDNS provider account.
- password String
- The password or token for your DDNS provider account. This value will be stored securely and not displayed in logs.
- server String
- The update server hostname for your DDNS provider. Usually not required as the UniFi controller knows the correct servers for common providers.
- service String
- The Dynamic DNS service provider. Common values include:
dyndns- DynDNS servicenoip- No-IP serviceduckdns- Duck DNS service Check your UniFi controller for the complete list of supported providers.
- site String
- The name of the UniFi site where the dynamic DNS configuration should be created. If not specified, the default site will be used.
Package Details
- Repository
- unifi pulumiverse/pulumi-unifi
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
unifiTerraform Provider.
published on Tuesday, Feb 17, 2026 by Pulumiverse
