From 9d96f66e4fd53e449a22390a2af14b3bfcdc910c Mon Sep 17 00:00:00 2001 From: Simon Marsh Date: Sun, 20 Sep 2020 15:30:39 +0100 Subject: [PATCH] kick --- .drone.yml | 21 +++++++++------------ .gitignore | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 19 +++++++++++++++++++ creds.json | 9 ++++++--- dnsconfig.js | 11 ++++------- 5 files changed, 89 insertions(+), 22 deletions(-) create mode 100644 .gitignore create mode 100644 README.md diff --git a/.drone.yml b/.drone.yml index b257237..a05621f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,29 +1,26 @@ --- kind: pipeline -type: docker +type: exec name: dnscontrol -trigger: - event: push - -workspace: - path: /dns - steps: + - name: preview - image: stackexchange/dnscontrol environment: PDNS_API_KEY: - from_secret: PDNS_API_KEY + from_secret: PDNS_API_KEY + CLOUDFLARE_API_KEY: + from_secret: CLOUDFLARE_API_KEY commands: - dnscontrol preview - name: push - image: stackexchange/dnscontrol environment: PDNS_API_KEY: - from_secret: PDNS_API_KEY + from_secret: PDNS_API_KEY + CLOUDFLARE_API_KEY: + from_secret: CLOUDFLARE_API_KEY commands: - dnscontrol push when: - branch: master + event: promote diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c0df46a --- /dev/null +++ b/.gitignore @@ -0,0 +1,51 @@ +# ---> Emacs +# -*- mode: gitignore; -*- +*~ +\#*\# +/.emacs.desktop +/.emacs.desktop.lock +*.elc +auto-save-list +tramp +.\#* + +# Org-mode +.org-id-locations +*_archive + +# flymake-mode +*_flymake.* + +# eshell files +/eshell/history +/eshell/lastdir + +# elpa packages +/elpa/ + +# reftex files +*.rel + +# AUCTeX auto folder +/auto/ + +# cask packages +.cask/ +dist/ + +# Flycheck +flycheck_*.el + +# server auth directory +/server/ + +# projectiles files +.projectile + +# directory configuration +.dir-locals.el + +# network security +/network-security.data + + diff --git a/README.md b/README.md new file mode 100644 index 0000000..bb81ab3 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# burble.dn42 DNS Domains + +[![Build Status](https://ci.burble.dn42/api/badges/burble.dn42/dns/status.svg?branch=master)](https://ci.burble.dn42/burble.dn42/dns) + +DNS master for burble.dn42 domains + +|Domain|Role| +|:--|:--| +|burble.com|burble.com forward zone| +|burble.dn42|burble.dn42 forward zone| +|collector.dn42|Global Route Collector forward zone| +|0/27.129.20.172.in-addr.arpa|burble.dn42 services reverse| +|160/27.129.20.172.in-addr.arpa|burble.dn42 nodes reverse| +|1.0.6.2.2.4.2.4.2.4.d.f.ip6.arpa|burble.dn42 reverse zone| +|0.0.1.0.0.e.d.3.0.8.1.0.2.4.d.f.ip6.arpa|git.dn42 reverse zone| +|0/28.63.22.172.in-addr.arpa|git.dn42 reverse zone| +|0.3.0.0.0.e.d.3.0.8.1.0.2.4.d.f.ip6.arpa|b.master.delegation-servers.dn42 reverse zone| + + diff --git a/creds.json b/creds.json index 78a7937..df054b5 100644 --- a/creds.json +++ b/creds.json @@ -1,7 +1,10 @@ { "powerdns": { - "apiurl": "http://dns-burble.tier2.uk-lon1.burble.dn42:8081/api/v1", - "apikey": "$PDNS_API_KEY", - "servername": "localhost", + "apiUrl": "http://dns-burble.tier2.uk-lon1.burble.dn42:8081", + "apiKey": "$PDNS_API_KEY", + "serverName": "localhost" + }, + "cloudflare": { + "apitoken": "$CLOUDFLARE_API_KEY" } } diff --git a/dnsconfig.js b/dnsconfig.js index 0b8d817..bb8fc26 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -4,20 +4,17 @@ var REG_NONE = NewRegistrar('none', 'NONE'); var PDNS = NewDnsProvider( 'powerdns', - 'PowerDNS', + 'POWERDNS', { 'dnssec_on_create': true } ); +var domain; ////////////////////////////////////////////////////////////////////////// -D( - 'example.local', - REG_NONE, - DnsProvider(PDNS), - A('@', '1.2.3.4') -); +// import individual domain files +require_glob('domains/', false) ////////////////////////////////////////////////////////////////////////// // end of file