Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 99. Updating DNS records systematically when using external DNS
When using external DNS, Identity Management (IdM) does not update the DNS records automatically after a change in the topology. You can update the DNS records managed by an external DNS service systematically, which reduces the need for manual DNS updates.
Updating DNS records removes old or invalid DNS records and adds new records. You must update DNS records after a change in your topology, for example:
- After installing or uninstalling a replica
- After installing a CA, DNS, KRA, or Active Directory trust on an IdM server
99.1. Updating external DNS records with GUI Copier lienLien copié sur presse-papiers!
If you have made any changes to your topology, you must update the external DNS records by using the external DNS GUI.
Procedure
Display the records that you must update:
ipa dns-update-system-records --dry-run IPA DNS records: _kerberos-master._tcp.example.com. 86400 IN SRV 0 100 88 ipa.example.com. _kerberos-master._udp.example.com. 86400 IN SRV 0 100 88 ipa.example.com. [... output truncated ...]
$ ipa dns-update-system-records --dry-run IPA DNS records: _kerberos-master._tcp.example.com. 86400 IN SRV 0 100 88 ipa.example.com. _kerberos-master._udp.example.com. 86400 IN SRV 0 100 88 ipa.example.com. [... output truncated ...]Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Use the external DNS GUI to update the records.
99.2. Updating external DNS records using nsupdate Copier lienLien copié sur presse-papiers!
You can update external DNS records using the nsupdate utility. You can also add the command to a script to automate the process. To update with the nsupdate utility, you need to generate a file with the DNS records, and then proceed with either sending an nsupdate request secured using TSIG, or sending an nsupdate request secured using the GSS-TSIG.
Procedure
To generate a file with the DNS records for
nsupdate, use the `ipa dns-update-system-records --dry-runcommand with the--outoption. The--outoption specifies the path of the file to generate:ipa dns-update-system-records --dry-run --out dns_records_file.nsupdate IPA DNS records: _kerberos-master._tcp.example.com. 86400 IN SRV 0 100 88 ipa.example.com. _kerberos-master._udp.example.com. 86400 IN SRV 0 100 88 ipa.example.com. [... output truncated ...]
$ ipa dns-update-system-records --dry-run --out dns_records_file.nsupdate IPA DNS records: _kerberos-master._tcp.example.com. 86400 IN SRV 0 100 88 ipa.example.com. _kerberos-master._udp.example.com. 86400 IN SRV 0 100 88 ipa.example.com. [... output truncated ...]Copy to Clipboard Copied! Toggle word wrap Toggle overflow The generated file contains the required DNS records in the format accepted by the
nsupdateutility.The generated records rely on:
- Automatic detection of the zone in which the records are to be updated.
Automatic detection of the zone’s authoritative server.
If you are using an atypical DNS setup or if zone delegations are missing,
nsupdatemight not be able to find the right zone and server. In this case, add the following options to the beginning of the generated file:-
server: specify the server name or port of the authoritative DNS server to whichnsupdatesends the records. zone: specify the name of the zone wherensupdateplaces the records.Example 99.1. Generated record
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
99.3. Sending an nsupdate request secured using TSIG Copier lienLien copié sur presse-papiers!
When sending a request using nsupdate, make sure you properly secure it. Transaction signature (TSIG) enables you to use nsupdate with a shared key.
Prerequisites
- Your DNS server must be configured for TSIG.
- Both the DNS server and its client must have the shared key.
Procedure
Run the
nsupdatecommand and provide the shared secret using one of these options:-kto provide the TSIG authentication key:nsupdate -k tsig_key.file dns_records_file.nsupdate
$ nsupdate -k tsig_key.file dns_records_file.nsupdateCopy to Clipboard Copied! Toggle word wrap Toggle overflow -yto generate a signature from the name of the key and from the Base64-encoded shared secret:nsupdate -y algorithm:keyname:secret dns_records_file.nsupdate
$ nsupdate -y algorithm:keyname:secret dns_records_file.nsupdateCopy to Clipboard Copied! Toggle word wrap Toggle overflow
99.4. Sending an nsupdate request secured using GSS-TSIG Copier lienLien copié sur presse-papiers!
When sending a request using nsupdate, make sure you properly secure it. GSS-TSIG uses the GSS-API interface to obtain the secret TSIG key. GSS-TSIG is an extension to the TSIG protocol.
Prerequisites
- Your DNS server must be configured for GSS-TSIG.
This procedure assumes that Kerberos V5 protocol is used as the technology for GSS-API.
Procedure
Authenticate with a principal allowed to update the records:
kinit principal_allowed_to_update_records@REALM
$ kinit principal_allowed_to_update_records@REALMCopy to Clipboard Copied! Toggle word wrap Toggle overflow Run
nsupdatewith the-goption to enable the GSS-TSIG mode:nsupdate -g dns_records_file.nsupdate
$ nsupdate -g dns_records_file.nsupdateCopy to Clipboard Copied! Toggle word wrap Toggle overflow