OpenWRT DDNS: Difference between revisions
mNo edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 423: | Line 423: | ||
Error loading shared library libbind9-9.18.7.so: No such file or directory (needed by /usr/bin/nsupdate) | Error loading shared library libbind9-9.18.7.so: No such file or directory (needed by /usr/bin/nsupdate) | ||
</syntaxhighlight>Try reinstalling the bind-libs package: opkg update bind-libs (or remove it and reinstall it, etc.) | </syntaxhighlight>Try reinstalling the bind-libs package: opkg update bind-libs (or remove it and reinstall it, etc.) | ||
Also make sure nslookup is installed: opkg install bind-nslookup | |||
Oh, and just noticed (because generally BIND / NAMED is installed on all documented OpenWRT Routers, not DNSMASQ, it looks like full blown BIND / NAMED must be installed too with DNSMASQ disabled for the Network and Interface Method(s) to function. | |||
===Script Error for NSUPDATE (and possibly other scripts too)=== | ===Script Error for NSUPDATE (and possibly other scripts too)=== | ||
Line 446: | Line 450: | ||
*The "NSUPDATE Script" that is generated and "temporarily" (it only seems to keep the script there if there is an error, otherwise the IP address is stored there) stored in /tmp/run/ddns/WhateverName.DAT contains the NSUPDATE commands, one line of which is: server W.X.Y.Z [and can have the port number, but isn't put there by OpenWRT's DDNS script, but could be put there, but a space, not a colon is the correct syntax]. This means the "NSUPDATE Script" generated by OpenWRT's DDNS script never has the port number included (but it could). | *The "NSUPDATE Script" that is generated and "temporarily" (it only seems to keep the script there if there is an error, otherwise the IP address is stored there) stored in /tmp/run/ddns/WhateverName.DAT contains the NSUPDATE commands, one line of which is: server W.X.Y.Z [and can have the port number, but isn't put there by OpenWRT's DDNS script, but could be put there, but a space, not a colon is the correct syntax]. This means the "NSUPDATE Script" generated by OpenWRT's DDNS script never has the port number included (but it could). | ||
Solution: Change the "Sanitize Regular Expression" (DNS_CHARSET, about twenty or thirty lines down in dynamic_dns_functions.sh) to include a space! | Solution: Change the "Sanitize Regular Expression" (DNS_CHARSET, about twenty or thirty lines down in /usr/lib/ddns/dynamic_dns_functions.sh) to include a space! | ||
*Current Line of Code: DNS_CHARSET="[@a-zA-Z0-9._-]" | *Current Line of Code: DNS_CHARSET="[@a-zA-Z0-9._-]" |