https://github.com/konsultaner/ddnslight
A very light weight dynamic dns based on php header location. It can also update a dyndns.org account
https://github.com/konsultaner/ddnslight
Last synced: 2 months ago
JSON representation
A very light weight dynamic dns based on php header location. It can also update a dyndns.org account
- Host: GitHub
- URL: https://github.com/konsultaner/ddnslight
- Owner: konsultaner
- Created: 2013-09-12T07:50:38.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-09-12T08:21:42.000Z (almost 13 years ago)
- Last Synced: 2025-11-21T21:22:00.952Z (8 months ago)
- Language: PHP
- Size: 117 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DDnsLight #
This is a little class that allows you to use a webserver to be a dynamic dns server.
## Installation ##
Create a index.php in a folder you want to use for the update process like '/dns'. Copy the class to the folder and edit the index.php like
run();
The first time you run the script, it will create a folder "storage" including a "dns.ini.php" and a ".htaccess" file. Open the ini.php file and set a password. The password will be used to authorize the update-ip process.
The second time you call the script, it will do what it was written for.
## Call the dynamic ip ##
For simple website applications it will use the location header to redirect to a dynamic ip. To do so you need to call the site like
http://my-static-site.com/?/
http://my-static-site.com/?/a/deep/link
to simply receive the current dynamic ip, simply call
http://my-static-site.com/
this can be used for other scripts that redirect other services
## Config to update dyndns as well ##
The class has some constants. You should only change the following to make the script also update your dyndns account
const DYN_DNS_ACCOUNT_UPDATE = FALSE;
const DYN_DNS_ACCOUNT_USER = "";
const DYN_DNS_ACCOUNT_PASSWORD = "";
const DYN_DNS_ACCOUNT_HOST = "";
## Licence ##
Use the script as you like on your own risk.
The script originally came from [here](http://www.axelteichmann.de/DynamicDNS/index-DynDNS-mit-Fritzbox.php).