This commit is contained in:
parent
fb00485c95
commit
9d96f66e4f
21
.drone.yml
21
.drone.yml
@ -1,29 +1,26 @@
|
|||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: exec
|
||||||
name: dnscontrol
|
name: dnscontrol
|
||||||
|
|
||||||
trigger:
|
|
||||||
event: push
|
|
||||||
|
|
||||||
workspace:
|
|
||||||
path: /dns
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: preview
|
- name: preview
|
||||||
image: stackexchange/dnscontrol
|
|
||||||
environment:
|
environment:
|
||||||
PDNS_API_KEY:
|
PDNS_API_KEY:
|
||||||
from_secret: PDNS_API_KEY
|
from_secret: PDNS_API_KEY
|
||||||
|
CLOUDFLARE_API_KEY:
|
||||||
|
from_secret: CLOUDFLARE_API_KEY
|
||||||
commands:
|
commands:
|
||||||
- dnscontrol preview
|
- dnscontrol preview
|
||||||
|
|
||||||
- name: push
|
- name: push
|
||||||
image: stackexchange/dnscontrol
|
|
||||||
environment:
|
environment:
|
||||||
PDNS_API_KEY:
|
PDNS_API_KEY:
|
||||||
from_secret: PDNS_API_KEY
|
from_secret: PDNS_API_KEY
|
||||||
|
CLOUDFLARE_API_KEY:
|
||||||
|
from_secret: CLOUDFLARE_API_KEY
|
||||||
commands:
|
commands:
|
||||||
- dnscontrol push
|
- dnscontrol push
|
||||||
when:
|
when:
|
||||||
branch: master
|
event: promote
|
||||||
|
51
.gitignore
vendored
Normal file
51
.gitignore
vendored
Normal file
@ -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
|
||||||
|
|
||||||
|
|
19
README.md
Normal file
19
README.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# burble.dn42 DNS Domains
|
||||||
|
|
||||||
|
[](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|
|
||||||
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
|||||||
{
|
{
|
||||||
"powerdns": {
|
"powerdns": {
|
||||||
"apiurl": "http://dns-burble.tier2.uk-lon1.burble.dn42:8081/api/v1",
|
"apiUrl": "http://dns-burble.tier2.uk-lon1.burble.dn42:8081",
|
||||||
"apikey": "$PDNS_API_KEY",
|
"apiKey": "$PDNS_API_KEY",
|
||||||
"servername": "localhost",
|
"serverName": "localhost"
|
||||||
|
},
|
||||||
|
"cloudflare": {
|
||||||
|
"apitoken": "$CLOUDFLARE_API_KEY"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
11
dnsconfig.js
11
dnsconfig.js
@ -4,20 +4,17 @@
|
|||||||
var REG_NONE = NewRegistrar('none', 'NONE');
|
var REG_NONE = NewRegistrar('none', 'NONE');
|
||||||
var PDNS = NewDnsProvider(
|
var PDNS = NewDnsProvider(
|
||||||
'powerdns',
|
'powerdns',
|
||||||
'PowerDNS',
|
'POWERDNS',
|
||||||
{
|
{
|
||||||
'dnssec_on_create': true
|
'dnssec_on_create': true
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
var domain;
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
D(
|
// import individual domain files
|
||||||
'example.local',
|
require_glob('domains/', false)
|
||||||
REG_NONE,
|
|
||||||
DnsProvider(PDNS),
|
|
||||||
A('@', '1.2.3.4')
|
|
||||||
);
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
// end of file
|
// end of file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user