Skip to content

Commit

Permalink
T12537: Migrate to BIND
Browse files Browse the repository at this point in the history
Companion for miraheze/puppet#3914. Do not merge one without the other!!
  • Loading branch information
redbluegreenhat committed Sep 6, 2024
1 parent a562763 commit 6035a07
Show file tree
Hide file tree
Showing 200 changed files with 267 additions and 334 deletions.
8 changes: 0 additions & 8 deletions admin_state

This file was deleted.

116 changes: 0 additions & 116 deletions config

This file was deleted.

9 changes: 9 additions & 0 deletions named.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in zones.rfc1918

include "/etc/bind/named.conf.local";
40 changes: 40 additions & 0 deletions named.conf.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
//
// Do any local configuration here
//

// Use the zones.rfc1918 file for adding zones
include "/etc/bind/zones.rfc1918";

// this options block and the following logging block are based on the ones at https://bind9.readthedocs.io/en/latest/chapter3.html#primary-authoritative-name-server
options {
// all relative paths use this directory as a base
directory "/var";
// version statement for security to avoid hacking known weaknesses
// if the real version number is revealed
version "not currently available";
// This is the default - allows user queries from any IP
allow-query { any; };
// normal server operations may place items in the cache
// this prevents any user query from accessing these items
// only authoritative zone data will be returned
allow-query-cache { none; };
// Do not provide recursive service to user queries
recursion no;
};

// logging clause
// log to /var/log/named/named.log all events from info UP in severity (no debug)
// uses 3 files in rotation swaps files when size reaches 250K
// failure messages that occur before logging is established are
// in syslog (/var/log/messages)
//
logging {
channel default_log {
file "/var/log/named/named.log" versions 3 size 250k;
// only log info and up messages - all others discarded
severity info;
};
category default {
default_log;
};
};
8 changes: 8 additions & 0 deletions zones.rfc1918
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* How to add new zones:
* 1. Create a zonefile for it with all the records you want in `/zones/`.
* 2. Add a zone block for it here, like so:
* zone "miraheze.org" { type master; file "/etc/bind/zones/miraheze.org"; };
* 3. Commit and push.
* We don't use zone transfers because Puppet will already download the zonefile to all nameservers; they can both think they're masters, no problem.
*/
2 changes: 1 addition & 1 deletion zones/agesofconflict.wiki
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN agesofconflict.wiki.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/allthetropes.org
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN allthetropes.org.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/annapolishistorywiki.org
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN annapolishistorywiki.org.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/antiguabarbudacalypso.com
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN antiguabarbudacalypso.com.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/apeirology.com
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN apeirology.com.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/archivesofhavnor.org
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN archivesofhavnor.org.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/aryavartpedia.online
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN aryavartpedia.online.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/aryavratpedia.co
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN aryavratpedia.co.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/avas.wiki
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN avas.wiki.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/baharna.org
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN baharna.org.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/baligawiki.org
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN baligawiki.org.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/baubles.me
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN baubles.me.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/bebaskanpengetahuan.id
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN bebaskanpengetahuan.id.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/beidipedia.com
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN beidipedia.com.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/beyondtheveilrp.com
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN beyondtheveilrp.com.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/bobobay.wiki
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN bobobay.wiki.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/bonesword.wiki
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN bonesword.wiki.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/bristolstudenthousingcoop.org
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN bristolstudenthousingcoop.org.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/buildabearwiki.info
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN buildabearwiki.info.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/burnout.wiki
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN burnout.wiki.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/cheeseepedia.org
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN cheeseepedia.org.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/christipedia.nl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN christipedia.nl.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
2 changes: 1 addition & 1 deletion zones/civwiki.org
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $ORIGIN civwiki.org.
)

; Wildcard services
@ DYNA geoip!cp
@ HTTPS 0 cf-lb.miraheze.org.

; Name servers
@ NS ns1.wikitide.net.
Expand Down
Loading

0 comments on commit 6035a07

Please sign in to comment.