1,723
edits
m |
|||
Line 339: | Line 339: | ||
Some good hints came from here: https://github.com/openwrt/packages/issues/8277 | Some good hints came from here: https://github.com/openwrt/packages/issues/8277 | ||
=== Client on DD-WRT === | ===Client on DD-WRT=== | ||
==== Assumptions ==== | ====Assumptions==== | ||
Sadly, all of the below is predicated on having Entware installed on a DD-WRT router. That's a bit of an undertaking, but is described here | Sadly, all of the below is predicated on having Entware installed on a DD-WRT router. That's a bit of an undertaking, but is described here: [[Entware Installation on DD-WRT]] | ||
==== Do NOT try these things... ==== | If you don't want to try installing Entware, then a good starting point might be the "Do NOT try these things..." in the next section (a bit ironic, but read the last paragraph of that section). | ||
====Do NOT try these things...==== | |||
It was worth it to put this in here because it useful. Unlike every other well meaning tutorial on this, it actually works (IE, the others don't) | It was worth it to put this in here because it useful. Unlike every other well meaning tutorial on this, it actually works (IE, the others don't) | ||
First of all, '''''don't''''' try the following; | First of all, '''''don't''''' try the following; | ||
* A general tutorial for DDNS for DD-WRT:https://wiki.dd-wrt.com/wiki/index.php/Dynamic_DNS (it is old and outdated) | *A general tutorial for DDNS for DD-WRT:https://wiki.dd-wrt.com/wiki/index.php/Dynamic_DNS (it is old and outdated) | ||
* To use DDNS using a StartUp Script:https://wiki.dd-wrt.com/wiki/index.php/Useful_Scripts#DynDNS_Updates_Using_Curl_.28with_HTTPS.2FSSL_Support.29 (it's old and outdated, done before nslookup reported IPv6 IP Addresses | *To use DDNS using a StartUp Script:https://wiki.dd-wrt.com/wiki/index.php/Useful_Scripts#DynDNS_Updates_Using_Curl_.28with_HTTPS.2FSSL_Support.29 (it's old and outdated, done before nslookup reported IPv6 IP Addresses | ||
* To get an IP Address: https://linuxhint.com/resolve_hostname_ip_address_bash_script/ (It just doesn't work. The issues? First, it's missing the #!/bin/sh at the beginning of a BASH script file. Second, this person seems to randomly switch between his script being named script.sh and iplookup.sh. Third it doesn't work at all.) | *To get an IP Address: https://linuxhint.com/resolve_hostname_ip_address_bash_script/ (It just doesn't work. The issues? First, it's missing the #!/bin/sh at the beginning of a BASH script file. Second, this person seems to randomly switch between his script being named script.sh and iplookup.sh. Third it doesn't work at all.) | ||
Having made those disparaging remarks, the below configuration was based on all of the above (sort of). So even though the above seems a bit derogatory, it isn't. Thanks to the pioneering work of those nice people, the below configuration was created. | Having made those disparaging remarks, the below configuration was based on all of the above (sort of). So even though the above seems a bit derogatory, it isn't. Thanks to the pioneering work of those nice people, the below configuration was created. | ||
==== IP Address from Host Name ==== | ====IP Address from Host Name==== | ||
The easiest way to get an IP Address from a host name on | This is a prerequisite for having everything for DDNS on DD-WRT | ||
The easiest way to get an IP Address from a host name on DD-WRT with Entware is; | |||
* opkg update | |||
* opkg install resolveip | |||
* Run this command: resolveip -4 www.google.com (and that will result in 172.217.6.36 or any number of other IP Addresses, depending on your physical location) | |||
==Special Thanks== | ==Special Thanks== |