Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lemyskaman/namesilo_dynamic_dns_record_updater
A javascript routine to check and update your public ip to a namesilo ddns record value
https://github.com/lemyskaman/namesilo_dynamic_dns_record_updater
Last synced: about 2 months ago
JSON representation
A javascript routine to check and update your public ip to a namesilo ddns record value
- Host: GitHub
- URL: https://github.com/lemyskaman/namesilo_dynamic_dns_record_updater
- Owner: lemyskaman
- Created: 2018-01-23T14:35:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T16:11:45.000Z (about 2 years ago)
- Last Synced: 2024-03-17T07:39:22.213Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 81.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Namesilo Nodejs Dynamic Domain Name System
This javascript program implements the [http API](https://www.namesilo.com/api_reference.php) from [namesilo](https://www.namesilo.com/) to update the value of an "_Existing Resource Record_ " with your public ip address, polling it from [ipyfy](https://www.ipify.org) public service.
## Requires
This script was developed and tested using:
* nodejs >= 4.5.6
* npm >= 3.5.2
* [namesilo api key](https://www.namesilo.com/Support/API-Manager)## Install
Clone the repository .
```
git clone https://github.com/lemyskaman/namesilo_ddns_record_updater.gitcd namesilo_ddns_record_updater
```Install all node modules.
```
npm install
```
Rename the file example_config.js to config.js.
On linux you can do that with the next command:
```
mv config_example.js config.js
```Edit the file config.js filling the empty ("") config properties.
Take this as an example:
```javascript
var _ = require('lodash');var config = {
ipifyPublicHttpServiceQuery : "https://api.ipify.org?format=text",
ipifyPollPeriod:"10000",//milisecs
namesilo_target_domain : "kamansoft.com", //your main domain
namesilo_target_resource_host : "test.kamanasoft.com", //a target value update subdomain
namesilo_api_key : "b2fdef38c2932a3eb47f", //you must get an ip key from namesilo
record_list_http_query_template : _.template("https://www.namesilo.com/api/dnsListRecords?version=1&type=xml&key=<%- apiKey %>&domain=<%- targetDomain %>"),
update_http_query_template : _.template("https://www.namesilo.com/api/dnsUpdateRecord?version=1&type=xml&key=<%- apiKey %>&domain=<%- targetDomain %>&rrid=<%- targetResourceId %>&rrhost=<%- targetResourceHost %>&rrvalue=<%- value %>&rrttl=7207 ")
}module.exports = config;
```## Usage
If everything above is ok the just run the script.
```
npm start
```