Sign inSign up

maccyber/auto-add-dns-domeneshop

By maccyber

Updated about 8 years ago

Updates dns records on domeneshop

Image
0

431

maccyber/auto-add-dns-domeneshop repository overview

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

npm run setup

Configure

vim config/index.js

Run

For help

./cli -h

Run this to update DNS

./cli.js -i 178.62.210.166 -d testdomain

2. Run from docker

For help

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

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"

Tag summary

Content type

Image

Digest

Size

18.9 MB

Last updated

almost 10 years ago

docker pull maccyber/auto-add-dns-domeneshop