#18693: ddns-scripts tweak needed for namecheap.com
---------------------------+------------------------
Reporter: Steve Newcomb | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: packages | Version: Trunk
Keywords: |
---------------------------+------------------------
If the hostname's ipaddr is not the same as the domain's ipaddr, the
existing dynamic_dns_updater.sh script doesn't work with namecheap.com's
ddns service, because that script currently checks (via nslookup)
domain.com's current ipaddr, not your.domain.com's current ipaddr.
Therefore, the script thinks the nameservice *always* needs updating, even
though it doesn't.
I made it work properly with two changes:
(1) I added "option hostname your.domain.com" to my /etc/config/ddns.
There was no such option there even though there is a "hostname" field in
the LUCI interface.
(2) In /usr/lib/ddns/dynamic_dns_updater.sh, I changed the line:
registered_ip=$(echo $(nslookup "$domain" 2>/dev/null) | grep -o
"Name:.*" | grep -o "$ip_regex")
to:
registered_ip=$(echo $(nslookup "$hostname" 2>/dev/null) | grep
-o "Name:.*" | grep -o "$ip_regex")
(i.e., "$domain" became "$hostname")
(What this means for LUCI is much less clear to me.)
--
Ticket URL: <https://dev.openwrt.org/ticket/18693>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets