Answer the question
In order to leave comments, you need to log in
The native firmware of the router is 2.06, but in it, in the DDNS settings, only dyndns.com, dlinkddns servers were in it, but there is no no-ip I need?
The native firmware of the router was 2.04, but in the DDNS settings there were only dyndns.com, dlinkddns from the servers, and there was no no-ip I needed, after which I updated the firmware to the latest (which I found, 2.06), but in it in DDNS settings is missing the field specifying the ddns server. Tell me how to solve this problem? I know that this problem was solved with the help of a script, but I don't know what to do with it. Tell me please.
import re, urllib
if __name__ == "__main__":
web_page = urllib.urlopen("http://2ip.ru")
web_page = web_page.read()
ip = re.findall("(\d+\.\d+\.\d+\.\d+)", web_page)[0]
username = 'username'
password = 'password'
host = 'host'
update = urllib.urlopen("http://"+str(username)+":"+str(password)+
"@dynupdate.no-ip.com/nic/update?hostname="+str(host)+"&myip="+ ip)
res = update.read()
if re.match("(good)|(nochg)", res):
print 'ok'
else:
print 'error\n' + res
Answer the question
In order to leave comments, you need to log in
The execution of this script updates the address on the no-ip server, you need to download python to your computer and add the execution of this script to the scheduler immediately when you turn it on. I doubt that there is a package manager on the long run to install it.
Although I would register the Dlinkddns domain and in No-IP I would make a "cname" entry to the Dlink domain - and no scripts are needed.
Alexander, thank you very much - the problem is partially solved. I tried two of your methods, they really did the job. Although I stopped at the second. I created an account in dlinkddns, added a host (I made settings to the router, clicked update) DLINK "host" was assigned my browser ip, I made a "cname" entry in no ip. Now when I enter the name of the host from no ip into the address bar, it redirects to the dlinkddns host. After that, the router authorization page opens. I tried to access the same host from a 3g tablet - I got an error 408 (page not found). That is, everything works on the internal network of my provider, but not outside. I suspect that I have a gray ip-shnik and the provider provides me with Internet access through NAT. If so, can you advise? I will be very grateful to you.https://xakep.ru/2012/01/09/58121/ " gogo6/Freenet6 did not return any results.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question