2017-12-12 13:20:36 -08:00
|
|
|
:title: DNS
|
|
|
|
|
|
|
|
.. _dns:
|
|
|
|
|
|
|
|
DNS
|
|
|
|
###
|
|
|
|
|
|
|
|
The project runs authoritative DNS servers for any constituent
|
2019-01-28 09:55:48 -08:00
|
|
|
projects that wish to use them. The servers run Bind on a hidden
|
|
|
|
master which handles automatic DNSSEC zone signing while the public
|
|
|
|
authoritative servers run NSD.
|
2017-12-12 13:20:36 -08:00
|
|
|
|
|
|
|
At a Glance
|
|
|
|
===========
|
|
|
|
|
|
|
|
:Hosts:
|
2018-09-25 07:56:23 -07:00
|
|
|
* ns1.opendev.org
|
|
|
|
* ns2.opendev.org
|
2019-01-28 09:55:48 -08:00
|
|
|
:Ansible:
|
2020-05-26 15:46:41 -05:00
|
|
|
* :git_file:`inventory/service/group_vars/dns.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
|