-
Notifications
You must be signed in to change notification settings - Fork 3
/
info.php
25 lines (22 loc) · 1.53 KB
/
info.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<div class="spacer top"></div>
<p>For automated updates you can use this URL directly. Exchange the patameter values for username and password
<span class="important">http://<?php echo $_SERVER['HTTP_HOST']; ?>/ddns.php?user=<username>&pass=<password></span></p>
Actually we offer only one domain. As soon as you will be able to choose more top-level domains for your host and you decide to use another domain than "ddns.tld", just add parameter <span class="important">&domain=<domain></span> to the URL</p>
<p>Normally our server auto recognizes your hosts IP address. If you would like to override the autorecognition, simply add the parameter <span class="important">&ip=<ipaddress></span> to the URL. This might be usefull in some situations:<br>
<ul style="font-size:smaller">
<li>Address recognition fails if you are behind a HTTP Proxy or VPN. Some firewalls/NAT-router may break auto recognition also.</li>
<li>You want to use the DDNS service with another host than the one you are sending the update request from.</li>
<li>You might want to rely on Your own IP-recognition on ddns client side.</li>
</ul>
</p>
<p>On Linux and Mac simply create a shell script and call it with cron or ipup, but please <b>do not abuse</b> the server with too frequently updates.<br>
<pre>
<code>
#!/bin/sh
cd /tmp
rm update.php* 2>/dev/null
wget https://<?php echo $_SERVER['HTTP_HOST']; ?>/ddns.php?user=<username>&pass=<password> 2>/dev/null
</code>
</pre>
</p>
<div class="spacer bottom"></div>