owiecc
Occasional Visitor
Tunlr went down. I modified the script from Alexander Ryzhov to work with Unlocator.
I hardcoded the DNS address. If you can help with dynamic DNS server address retrieval please do so. It is beyond my coding skills.
Code:
#!/bin/sh
PATH='/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin'
# Unlocator DNS updater
#
# based on:
# Tunlr DNS updater for dnsmasq. 2013, Alexander Ryzhov
# Adapted For asuswrt-merlin firmware.
logger -t $(basename $0) "started [$@]"
DNSMASQ_CONF=/jffs/configs/dnsmasq.conf.add
DOMAINS=$(cat /jffs/configs/domains.txt)
IPS='185.37.37.37' # unlocator.com DNS
echo -n > $DNSMASQ_CONF
for domain in $DOMAINS
do
for dns in $IPS
do
echo "server=/${domain}/${dns}" >> $DNSMASQ_CONF
done
done
service restart_dnsmasq
I hardcoded the DNS address. If you can help with dynamic DNS server address retrieval please do so. It is beyond my coding skills.