Skip to content

UniFi

UniFi gateways use Inadyn as their dynamic DNS client. The UniFi form combines the update server, path, and Inadyn placeholders into its Server field.

Configure Dynamic DNS

In the UniFi Network application, open your Internet connection's settings and create a new Dynamic DNS entry. Enter these values:

Field Value
Service Dyndns
Hostname all.dnsbun.com to update all configured destinations
Username Your DNSbun username
Password Your DNSbun password
Server update.dnsbun.com/nic/update?hostname=%h&myip=%i

Save the entry after checking that:

  • Hostname is all.dnsbun.com to target all destinations, or contains a specific fully qualified DNS record. It must not contain https://update.dnsbun.com.
  • Server does not include an https:// prefix.
  • The %h and %i placeholders are entered literally. Inadyn replaces them with the configured hostname and the gateway's detected WAN address.

Inadyn uses HTTPS by default, so credentials are sent to update.dnsbun.com over port 443.

Verify the request

After saving, UniFi should send an update when it detects a WAN address change. A valid request receives a DynDNS-compatible response such as:

nochg <address>

This response confirms that DNSbun received and parsed the request.

Troubleshooting

The update request does not arrive

Confirm that the Server value includes the complete path and query template:

update.dnsbun.com/nic/update?hostname=%h&myip=%i

Also confirm that the username, password, and hostname fields are not empty.

The wrong hostname is sent

Use all.dnsbun.com to target all destinations. To target a specific record, enter its fully qualified DNS name, such as home.example.com. Do not enter the DNSbun API address in that field.

The gateway is behind CGNAT

DNSbun can still observe the public address presented to the Internet, but a DDNS record alone cannot make inbound connections work through carrier-grade NAT. Ask your ISP for a public address or use a tunnel-based access method.

References