2017-12-12 13:20:36 -08:00
|
|
|
:title: DNS
|
|
|
|
|
|
|
|
.. _dns:
|
|
|
|
|
|
|
|
DNS
|
|
|
|
###
|
|
|
|
|
|
|
|
The project runs authoritative DNS servers for any constituent
|
2023-03-09 15:01:45 +11:00
|
|
|
projects that wish to use them.
|
|
|
|
|
2023-04-18 17:02:54 +10:00
|
|
|
Bind is run on a hidden master (`adns02.opendev.org`) which handles
|
2023-03-09 15:01:45 +11:00
|
|
|
automatic DNSSEC zone signing. Any changes to the zone files are
|
|
|
|
deployed here.
|
|
|
|
|
|
|
|
Secondary public authoritative servers run NSD and take zone transfers
|
|
|
|
from the hidden primary. These are published in the NS records for
|
|
|
|
the managed zones.
|
2017-12-12 13:20:36 -08:00
|
|
|
|
|
|
|
At a Glance
|
|
|
|
===========
|
|
|
|
|
|
|
|
:Hosts:
|
2023-04-18 17:02:54 +10:00
|
|
|
* adns02.opendev.org
|
|
|
|
* ns03.opendev.org
|
|
|
|
* ns04.opendev.org
|
2019-01-28 09:55:48 -08:00
|
|
|
:Ansible:
|
2023-03-09 15:01:45 +11:00
|
|
|
* :git_file:`inventory/service/group_vars/adns.yaml`
|
|
|
|
* :git_file:`inventory/service/group_vars/adns-primary.yaml`
|
|
|
|
* :git_file:`inventory/service/group_vars/adns-secondary.yaml`
|
2017-12-12 13:20:36 -08:00
|
|
|
:Projects:
|
|
|
|
* https://www.nlnetlabs.nl/projects/nsd/
|
2019-01-28 09:55:48 -08:00
|
|
|
* https://www.isc.org/downloads/bind/doc/
|
2017-12-12 13:20:36 -08:00
|
|
|
|
|
|
|
Adding a Zone
|
|
|
|
=============
|
|
|
|
|
2019-01-28 09:55:48 -08:00
|
|
|
To add a new zone, identify an existing git repository or create a new
|
|
|
|
one to hold the contents of the zone, then update
|
2020-05-26 15:46:41 -05:00
|
|
|
:git_file:`inventory/service/group_vars/dns.yaml`.
|
2017-12-12 13:20:36 -08:00
|
|
|
|
2017-12-15 16:20:56 -08:00
|
|
|
Run::
|
|
|
|
|
|
|
|
dnssec-keygen -a RSASHA256 -b 2048 -3 example.net
|
|
|
|
dnssec-keygen -a RSASHA256 -b 2048 -3 -fk example.net
|
|
|
|
|
|
|
|
And add the resulting files to the `dnssec_keys` key in the
|
2019-01-28 09:55:48 -08:00
|
|
|
`group/adns.yaml` private hostvars file on puppetmaster.
|
2017-12-15 16:20:56 -08:00
|
|
|
|
2018-11-21 09:51:20 -08:00
|
|
|
If you need to generate DS records for the registrar, identify which
|
2019-01-28 09:55:48 -08:00
|
|
|
of the just-created key files is the key-signing key by examining the
|
|
|
|
contents of the files and reading the comments therein, then run::
|
2018-11-21 09:51:20 -08:00
|
|
|
|
|
|
|
dnssec-dsfromkey -2 $KEYFILE
|