I'm having trouble with namecheap.com for subdomains also
Note: I've replaced my actual hostname and domain with "host" and "example.com".
Looking at the log file, it appears nslookup is trying to resolve an IP address for the domain name ("example.com" which doesn't have one), instead of the FQDN ("host.example.com"), and then failing, and not updating the IP address.
122421 : Detect registered/public IP
122421 : #> /usr/bin/nslookup example.com >/var/run/ddns/host.dat 2>/var/run/ddns/example.com.err
122421 ERROR : BusyBox nslookup error: '1'
122421 : nslookup: can't resolve 'example.com': Name or service not known
122422 WARN : Get registered/public IP for 'example.com' failed - retry 1/0 in 60 seconds
122522 : #> /usr/bin/nslookup example.com >/var/run/ddns/host.dat 2>/var/run/ddns/host.err
Taken from /usr/lib/ddns/services
"namecheap.com" "http://dynamicdns.park-your-domain.com/update?host=[USERNAME]&domain=[DOMAIN]&password=[PASSWORD]&ip=[IP]"
So in LuCi,
- Hostname/Domain = [DOMAIN] Domain name (eg. "example.com")
- Username = [USERNAME] Hostname (eg. "host".example.com)
- Password = Dynamic DNS password [PASSWORD]
Why does nslookup need to check if your FQDN has an IP address, and then fail if it doesn't, if the whole purpose is to update the IP with a new one.
For the time being, I've used "-- custom --" as the DDNS Service provider, with "http://dynamicdns.park-your-domain.com/update?host=host&domain=example.com&password=[PASSWORD]" (obviously replacing host, and example.com with my real ones).
Then under Hostname/Domain - "host.example.com" (FQDN)
Username - " " (Space)
Password - "xxxxxx"
This seems to work fine, and also keeps LuCi nice and pretty with the correct IP displayed for the FQDN under Status, Overview.
Simon