Important: Remember your username and password - you'll need these to configure your router.
⚠️ Important: The "afraid" service option in UniFi routers may not work as it appears to be hardcoded to send updates to afraid.org servers. Use the "Custom" or "dyndns" option instead as shown below.
In your UniFi Network application:
Option 1: Custom Service (Recommended)
https://www.lockip.net/nic/update?hostname=<domain>&myip=<ipaddr>
Edit /etc/config/ddns:
config service 'lockip' option enabled '1' option interface 'wan' option service_name 'custom' option update_url 'https://[USERNAME]:[PASSWORD]@www.lockip.net/nic/update?hostname=[DOMAIN]&myip=[IP]' option domain 'home.lockip.net' option username 'your_username' option password 'your_password' option check_unit 'minutes' option check_interval '10'
https://www.lockip.net/nic/update?hostname=%HOST%&myip=%IP%
LockIP supports multiple DDNS update protocols for maximum compatibility:
/nic/update
- DynDNS2/afraid.org compatible/api/domains/nic/update
- Full path version/v2/update
- DynDNS2 alternative/dyndns/update
- Legacy DynDNS/api/domains/update
- Original LockIP formatAll endpoints support both GET and POST methods with HTTP Basic Authentication.
Test manually with curl:
# Test with specific IP curl -u username:password \ "https://www.lockip.net/nic/update?hostname=home.lockip.net&myip=1.2.3.4" # Test with auto-detected IP curl -u username:password \ "https://www.lockip.net/nic/update?hostname=home.lockip.net"
Your router will receive these standard responses:
good [IP]
- Update successfulnochg [IP]
- IP unchanged (no update needed)badauth
- Authentication failednohost
- Domain not founddnserr
- DNS update error