Contents
Managing DNSSEC signed zone files
The following zone files are currently being managed with the dns.git repository hosted on puppetmaster01-back at /git/dns.git.
- gnome.org
- guadec.org
- gnomehispano.org
- gnomehispano.es
- guadec.es
- gimp.org
- gimp.net
- gtk.org
Updating DNS Zone files
Updates to the following zone files must be processed as follow:
Login to nsd01.gnome.org. Make sure to read these instructions first.
- git clone /srv/dns
Do your modifications on dns/master/gnome.org (No need to bump the S/N for the zone, do-domains will do that for us automatically)
Fix your path: export PATH="$PATH:/usr/sbin"
Run the do-domains script at the toplevel of the dns git module
- Commit to git by following the on-screen instructions.
- ansible-playbook -i inventory/ral3_rhel8 --limit nsd playbooks/ral3_rhel8.yml
Adding new ZONE files
Login to nsd01.gnome.org.
- cd /srv/dnssec-keys
- copy the zone file you want to create a key for on CWD
- Run /usr/sbin/dnssec-keygen -a RSASHA1 -b 1024 -n ZONE $zone_file_name ; /usr/sbin/dnssec-keygen -a RSASHA1 -b 2048 -n ZONE -f KSK $zone_file_name
Edit the zone you just created and add the contents of the .key files to the bottom of the zone. (i.e cat K$zone_file_name*.key >> $zone_file_name)
Add the new zone file on signed_zones on the do-domains script.
- Commit everything to the DNS tree, push your changes.
Append the domain to https://gitlab.gnome.org/Infrastructure/ansible/-/blob/master/roles/nsd/vars/master.yml and https://gitlab.gnome.org/Infrastructure/ansible/-/blob/master/roles/nsd/vars/slave.yml
- Push your changes to Ansible.
- ansible-playbook -i inventory/ral3_rhel8 --limit nsd playbooks/ral3_rhel8.yml
Verify if the domain has DNSSEC enabled
dig . DNSKEY | grep -Ev '^($|;)' > root.keys
- dig +sigchase +trusted-key=./root.keys gnome.org. A | cat -n
Adding and verifying SSHFP entries
Run the following command on the target machine: ssh-keygen -r $(hostname --fqdn) -f /etc/ssh/ssh_host_rsa_key.pub
Copy the output under the SSHFP area of the target DNS zone file.
Follow the steps outlined on the Updating DNS Zone files how to above to process the update.
Verify the SSHFP entry with either dig SSHFP $target_subdomain.gnome.org or with ssh -oVerifyHostKeyDNS=yes -v $target_subdomain.gnome.org