Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maccyber/auto-add-dns-domeneshop

Updates dns records on domeneshop
https://github.com/maccyber/auto-add-dns-domeneshop

Last synced: 29 days ago
JSON representation

Updates dns records on domeneshop

Awesome Lists containing this project

README

        

# auto-add-dns-domeneshop
Since domeneshop doesn't have an API, I created a small script to add subdomains with cli.

# Features
* Add DNS A-records with default TTL
* It's fugly - (but works for me)

# 1. Run from host

## Install
```sh
npm run setup
```

## Configure
```sh
vim config/index.js
```

## Run

For help
```sh
./cli -h
```

Run this to update DNS
```sh
./cli.js -i 178.62.210.166 -d testdomain
```
# 2. Run from docker
For help
```sh
docker run -it --rm --entrypoint sh \
-e ROOT_DOMAIN=t-fk.no \
-e [email protected] \
-e PASSWORD=password \
-e ID=100000 \
--name auto-add-dns-domeneshop \
maccyber/auto-add-dns-domeneshop -c "/src/cli.js -h"
```

For update DNS
```sh
docker run -it --rm --entrypoint sh \
-e ROOT_DOMAIN=t-fk.no \
-e [email protected] \
-e PASSWORD=password \
-e ID=100000 \
--name auto-add-dns-domeneshop \
maccyber/auto-add-dns-domeneshop -c "/src/cli.js -i 178.62.210.166 -d testdomain"
```