1

Topic: The DynDNS

Kind hour. That is: 1) There is the VPS on  the domain mysite.com 2) Where I can create beyond all bounds number of subdomains, for example test.mysite.com It would be desirable the following: 3) That at reversal on test.mysite.com would be produced IP other my host 4) to Have possibility this another  to update IP the domain. Type a script call php. Type mysite.com/update_ip.php?dns=test&ip=< IP> as at it  host IP though also exterior but dynamic. If with 4th point more less clearly (it is possible simply in cron to thrust the task) that with (3) at all I do not know in what side it is necessary to dig? I.e. here it would be desirable to organize that that like the DynDNS. Thanks.

2

Re: The DynDNS

Hello, nen777w, you wrote: N> 1) There is the VPS on  the domain mysite.com N> 2) Where I can create beyond all bounds number of subdomains, for example test.mysite.com To me explained-explained, but again from a head took off. At me mysite.com "not dynamic", therefore in it it is impossible to do dynamic subdomains, but it is possible to make a zone, and here already in it to have a good time. N> It would be desirable the following: N> 3) That at reversal on test.mysite.com would be produced IP other my host N> 4) to Have possibility this another  to update IP the domain. Type a script call php. Type mysite.com/update_ip.php?dns=test&ip=< IP> as at it  host IP though also exterior but dynamic. N> if with 4th point more less clearly (it is possible simply in cron to thrust the task) that with (3) at all I do not know in what side it is necessary to dig? At me bind. In/etc/bind/named.conf.local added: zone "1.mysite.com" in {file "/home/aik/lalala"; type master;} ; And/home/aik/lalala corresponds with a script when the client wants, the file looks as that so: $TTL 1h 1.mysite.com. IN SOA mysite.com. aik.mysite.com. (18033009 180 180 1w 1d) IN NS ns1.mysite.com. 1.mysite.com. IN A 11.22.33.44 hhh IN A 55.66.77.88 11.22.33.44 - the address most mysite.com. 55.66.77.88 - the address of this client, in which  hhh.1.mysite.com. aik.mysite.com - like  the administrator of the domain. Whether it is necessary to correct that in the domain , dig mysite.com ANY to me shows nothing about a zone.

3

Re: The DynDNS

N>> 1) There is the VPS on  the domain mysite.com N>> 2) Where I can create beyond all bounds number of subdomains, for example test.mysite.com aik> To me explained-explained, but again from a head took off. At me mysite.com "not dynamic", therefore in it it is impossible to do dynamic subdomains, but it is possible to make a zone, and here already in it to have a good time. Tried. It did not turn out aik> At me bind. In/etc/bind/named.conf.local added: aik> zone "1.mysite.com" in {That this means 1.? aik> And/home/aik/lalala corresponds with a script when the client wants, the file looks as that so: aik>1.mysite.com. IN SOA mysite.com. aik.mysite.com. (180 33009 180 180 1w 1d) mysite.com how much I understood Our domain. What is aik.mysite.com? aik>@ IN NS ns1.mysite.com. What is? ns1.mysite.com, behind it that that should be?

4

Re: The DynDNS

Hello, nen777w, you wrote: aik>> At me bind. In/etc/bind/named.conf.local added: aik>> zone "1.mysite.com" in {N> That this means 1.? A zone, I the example resulted, could be (and is frequent indeed).dyn, clients will receive type addresses client.dyn.mysite.com. aik>> And/home/aik/lalala corresponds with a script when the client wants, the file looks as that so: aik>>1.mysite.com. IN SOA mysite.com. aik.mysite.com. (180 33009 180 180 1w 1d) N> mysite.com how much I understood Our domain. What is aik.mysite.com?  the administrator. You as obliquely read that. aik>>@ IN NS ns1.mysite.com. N> that the such? ns1.mysite.com, behind it that that should be? DNS zones "1", i.e. your server.

5

Re: The DynDNS

Simply use any DNS-hosting with API and possibility to put low enough TTL. I will recommend Cloudflare and Yandex, there and there did that you want, all worked.

6

Re: The DynDNS

Hello, nen777w, you wrote: N> 1) There is the VPS on  the domain mysite.com N> 2) Where I can create beyond all bounds number of subdomains, for example test.mysite.com Where you can create? Here this most NS zones - it yours, on yours VPS?

7

Re: The DynDNS

Hello, nen777w, you wrote: N> Kind hour. N> 3) that at reversal on test.mysite.com would be produced IP other my host N> 4) to Have possibility this another  to update IP the domain. Type a script call php. Type mysite.com/update_ip.php?dns=test&ip=< IP> as at it  host IP though also exterior but dynamic. CloudFlare. All free of charge CF_Email=some@email.com CF_API_KEY = "...." domain = "example.com" name_to_set = "xyz. $ {domain}" ip = "1.2.3.4" zone_id = $ (curl - silent-X GET "https://api.cloudflare.com/client/v4/zones?name=$ {domain} &status=active&page=1&per_page=20&order=status&direction=desc&match=all" \-H "X-Auth-Email: $ {CF_Email}" \-H "X-Auth-Key: $ {CF_API_KEY}" \-H "Content-Type: application/json" | jq - raw-output ".result [0].id") curl - silent-X POST "https://api.cloudflare.com/client/v4/zones/$ {zone_id}/dns_records" \-H "X-Auth-Email: $ {CF_Email}" \-H "X-Auth-Key: $ {CF_API_KEY}" \-H "Content-Type: application/json" \- data ' {"type":"A","name":"$ {name_to_set}","content":"$ {ip}","ttl":120, "priority":10, "proxied":false}'