namesilo_ddns
namesilo_ddns copied to clipboard
Dynamic DNS with NameSilo in BASH
update openwrt package
as title. when there will be multiple records with $HOST.$DOMAIN, not able to address ipv4 one correctly. RECORD_ID=`xmllint --xpath "//namesilo/reply/resource_record/record_id[../host/text() = '$HOST.$DOMAIN' ]" $DOMAIN.xml | grep -oP '(?
rrhost should not have a dot subfix, otherwise namesilo will report domain not found. the error response will looks like below dnsUpdateRecord121.228.14.21280subdomain..domain.me is not a valid host
  
use curl ipify.org to query ip, in the beginning, create two empty tmp file to avoid occurs error.
1, fix sub record issue for dot 2, only save to file for 300 code
some changes to make the result more reliable.