I am sharing manner using ddns from Yandex.
Instructions for firmware Padawan. Accidentally stumbled upon the Internet on
an articlewhere the method of connecting to the Yandex DNS is described.
Describes also
here, Method of changing the NS record of Yandex through the Bash script.
HereDescription from Yandex itself.
What is necessary?
1.Sobstvenny domain.
2. Register it in the system
Mail for domain.
3.
DelegateDomain on Yandex servers.
4.
ConfirmDomain.
5.Uznat current IP address.
6. recording the current IP in Yandex DNS, on
pageediting.
7. Pour tokens
here, Copy somewhere.
8. Follow the editable record ID (the method is described in
articleAbove, there are screenshots), copy, save.
9.Del, for the script functioning, we need to install CURL, for this install
Entware.
10. The SSH console is installed by CURL. (
Below will be an example without CURL through the built-in WGET firmware )
opkg update
opkg install curl
11.Zahodim through, click "Personalize" web interface>tab "Scripts">click on the "Run after the event WAN up / down:" and in the window at the bottom of a text copy / paste the code:
ip = $ (nvram get wan0_ipaddr)
/ OPT / BIN / CURL -K -H 'PDDToken: hereAndadnotnotnailen' -d 'domain = Vashman.ru & record_id = idizapisi & Type = A & Subdomain = Subdomain & TTL = 3600 & CONTENT =' $ ip '' 'https://pddimp.yandex.ru/api2/ Admin / DNS / EDIT ';
ZDESNADOZAMENITNATOKEN replace Upon receipt of the token, vashdomen.ru replace the primary domain, aydizapisi is replaced by id tsiferki, subdomain to subdomain (www example, what will be the ns in the recording, if the domain is a subdomain of the form without site.ru, instead of www, or else that it is necessary set @ as the settings SDA-Yandex.)
12.Sohranyaem all by clicking the "Apply" at the bottom
Next, you can check by opening another browser tab with the dns records Yandex for your domain, as in the web interface "re-connect" in the "Network Map">"State of the Internet" and thus update the IPv4-address WAN.
Upgraded ip the router, upgraded and records Yandex.
I hope someone can help my user guide!
p.s. Easier and more useful to those who have already SDA from Yandex!
### The same thing using wget
#! / bin / sh
ip = $ (nvram get wan0_ipaddr)
Wget --no-check-certificate https://pddimp.yandex.ru/api2/admin/dns/edit --Header = 'pddtoken: here_ write_tes_ot_ydex' --post-data = 'domain = domain.ru & record_id = idi_Ini & Type = A & Subdomain = Subdomain & TTL = 3600 & CONTENT = '$ ip' '--Quiet -o -
p.s.2 seems the service Yandex is covered with a copper basin, as Yandex forces the SDA users to service yandeks.konnekt that such funktsianala not.
Oh, and figs with him, by Yandex, the same can be done using dnsmanager.
Links for posting
snip,
snipand
snip(without any advertising, just here when registering a domain, give free use of the DNSManager service)
If you are interested, I can write, how to configure the api dnsmanager.
Post has been editedabarius - 26.01.19, 12:07Reason for editing: ps