1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Configure DynDNS with a UniFi product
This guide shows you how to configure your UniFi Gateway equipment to access their services and your devices via Infomaniak DynDNS.
Prerequisites
- Have a UniFi device of the Gateway type (e.g. UDM Pro, UDR, or USG) that allows you to configure a custom dynamic DNS provider.
- A dynamic DNS must have been created on the domain in question via the Infomaniak Manager.
DynDNS Configuration on UniFi Gateway
UniFi Gateway devices (such as the UniFi Dream Machine Pro/SE or the USG) include a DynDNS client that you configure via the UniFi Network controller interface:
- Access the interface of your UniFi Network controller (via the local IP address of your device or the cloud portal of your UniFi account).
- Go to "Settings" (Settings) (the gear icon).
- In the left menu, go to the "Internet" section (or "Wide Area Network (WAN)" on older interfaces).
- Click on the WAN interface concerned (usually named "WAN" or "Internet") to modify its parameters.
- The exact location may vary slightly depending on the version of your UniFi Network controller (New UI vs. Old UI).
- Look for the "Dynamic DNS" (Dynamic DNS) section and enable it.
- Select "Custom" (Custom) as the DynDNS service provider.
- Fill in the following fields:
- Service: Leave Custom
- Username: the identifier defined in the Manager when adding the Dynamic DNS
- Password: the password defined in the Manager
- Hostname: the dynamic domain name configured in the Manager (e.g.
myddns.domain.xyz) Request URL (Update URL): must include the placeholders for the hostname and IP address:
https://infomaniak.com/nic/update?hostname=<HOSTNAME>&myip=<IPADDR>- The UniFi device will automatically replace
<HOSTNAME>and<IPADDR>with the correct values during the update.
- Apply the changes.
Your UniFi equipment will start updating its public IP address with Infomaniak. You can check the status of the DynDNS connection in the same section to ensure it is in "Good" (Bon) status.
Firewall and port redirection (NAT)
If you want to access specific services behind your UniFi equipment (such as your UniFi Network Controller or other devices on your local network), you will need to configure firewall and port redirection (NAT) rules on your UniFi router.
- In the UniFi Network Controller, go to "Settings" (Paramètres).
- Go to the "Security" (Sécurité) section.
- Select the "Port Forwarding" (Redirection de ports) tab.
- Create new port forwarding rules for the services you want to access. For example, to access your UniFi Network Controller:
- Name: UniFi Controller Access
- Interface: WAN
- External Port: 8443 (or the port you use for external access to your controller)
- Internal IP Address: The local IP address of your UniFi controller.
- Internal Port: 8443 (or the internal port of your controller)
- Protocol: TCP
- Repeat for any other service requiring external access (e.g., NAS servers, cameras, etc.).