What's new

Tunlr down - alternative service

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

owiecc

Occasional Visitor
Tunlr went down. I modified the script from Alexander Ryzhov to work with Unlocator.

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.
 
hi... i replaced alex script with your changes and it works grate !

hope someone here will actually help with dynamic dns before it will change again...

this script is a MUST !

thx again
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top