OpenWRT DDNS: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 36: | Line 36: | ||
<nowiki>**</nowiki> It is necessary to disable the DNS functionality of DNSMASQ for BIND / NAMED to function properly. If DHCPD is used, and none of DNSMASQ's functionality is necessary, it is highly recommended to remove DNSMASQ instead of disabling it. Odd issues seem to crop up if it remains installed, even if disabled. | <nowiki>**</nowiki> It is necessary to disable the DNS functionality of DNSMASQ for BIND / NAMED to function properly. If DHCPD is used, and none of DNSMASQ's functionality is necessary, it is highly recommended to remove DNSMASQ instead of disabling it. Odd issues seem to crop up if it remains installed, even if disabled. | ||
==== Directories and Configuration File Locations ==== | ====Directories and Configuration File Locations==== | ||
* /etc/config/ddns: File for configuring DDNS (this file is the one the LuCI GUI uses, but can be manually edited too) | */etc/config/ddns: File for configuring DDNS (this file is the one the LuCI GUI uses, but can be manually edited too) | ||
* /usr/share/ddns: Location for other DDNS items (do not edit these) | */usr/share/ddns: Location for other DDNS items (do not edit these) | ||
* /usr/lib/ddns: Location for DDNS Scripts (do not edit these) | */usr/lib/ddns: Location for DDNS Scripts (do not edit these) | ||
==== DDNS References from OpenWRT ==== | ====DDNS References from OpenWRT==== | ||
Various Options Defined: https://openwrt.org/docs/guide-user/base-system/ddns (keep in mind for this page, it seems to be a bit out of date, there are errors like the stated directory for services files is /usr/lib/ddns/services/"WhatEverFileName" which is actually /usr/share/ddns/list | Various Options Defined: https://openwrt.org/docs/guide-user/base-system/ddns (keep in mind for this page, it seems to be a bit out of date, there are errors like the stated directory for services files is /usr/lib/ddns/services/"WhatEverFileName" which is actually /usr/share/ddns/list | ||
Line 387: | Line 387: | ||
*https://www.foell.org/justin/diy-dynamic-dns-with-openwrt-bind/ and https://github.com/sleinen/openwrt-nsupdate (Nice examples, but older article, and is seems the DDNS Scripts have essentially addressed the custom DDNS script the authors describe, so don't actually follow the instructions) | *https://www.foell.org/justin/diy-dynamic-dns-with-openwrt-bind/ and https://github.com/sleinen/openwrt-nsupdate (Nice examples, but older article, and is seems the DDNS Scripts have essentially addressed the custom DDNS script the authors describe, so don't actually follow the instructions) | ||
*https://stackoverflow.com/questions/11153958/how-to-enable-named-bind-dns-full-logging (the first person, [https://stackoverflow.com/users/1618161/steven-carr Steven Carr], that answers the question is greate, and I hate, hate, hate the idiot user ( [https://stackoverflow.com/users/1439767/alexsergeyev alexsergeyev]) that replied to this great answer by questioning why it is configured such that the logging to go to separate files. Well alexsergeyev, you're too stupid to understand the answer. So shut up and let smart users like [https://stackoverflow.com/users/1618161/steven-carr Steven Carr] answer the questions and quit bothering them since you have nothing useful to contribute.) | *https://stackoverflow.com/questions/11153958/how-to-enable-named-bind-dns-full-logging (the first person, [https://stackoverflow.com/users/1618161/steven-carr Steven Carr], that answers the question is greate, and I hate, hate, hate the idiot user ( [https://stackoverflow.com/users/1439767/alexsergeyev alexsergeyev]) that replied to this great answer by questioning why it is configured such that the logging to go to separate files. Well alexsergeyev, you're too stupid to understand the answer. So shut up and let smart users like [https://stackoverflow.com/users/1618161/steven-carr Steven Carr] answer the questions and quit bothering them since you have nothing useful to contribute.) | ||
==== Testing Things Using NSUPDATE ==== | |||
* Create a "Key File" in Bind Format using the Key to test against a BIND / NAMED DDNS server; | |||
<syntaxhighlight lang="text"> | |||
key "WhatEverKeyName" { | |||
algorithm WhatEverAlgorithmType; | |||
secret "WhatEverSecret"; | |||
}; | |||
</syntaxhighlight> | |||
* Create a "Script File" for NSUPDATE (so the individual commands do not need to be entered); | |||
<syntaxhighlight lang="text"> | |||
server IPAddressOrURLofWhatEverDNSServer (Example: 1.2.3.4 My.DNSServer.com) | |||
debug yes | |||
zone WhatEverZoneName.Whatever (Example: google.com) | |||
update add WhatEverHostName.DomainName.DomainSuffix. 86400 CNAME ns1 (Example: www.google.com 86400 CNAME ns1) | |||
show | |||
send | |||
</syntaxhighlight> | |||
* Run the Command: nsupdate -k WhatEverKeyFileName -v WhatScriptFileName -y | |||
==== Funky Errors with NSUPDATE? ==== | |||
<syntaxhighlight lang="text"> | |||
nsupdate --version | |||
Error loading shared library libisc-9.18.7.so: No such file or directory (needed by /usr/bin/nsupdate) | |||
Error loading shared library libdns-9.18.7.so: No such file or directory (needed by /usr/bin/nsupdate) | |||
Error loading shared library libisccfg-9.18.7.so: No such file or directory (needed by /usr/bin/nsupdate) | |||
Error loading shared library libirs-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.) |