Questo contenuto non è disponibile nella lingua selezionata.
Chapter 9. Updating DNS records when using external DNS
Keep your IdM DNS records up to date when using an external DNS server by using the nsupdate utility or the external DNS GUI. After topology changes, update the DNS records that external servers need to discover IdM services.
9.1. Prerequisites Copia collegamentoCollegamento copiato negli appunti!
- Your IdM deployment uses an external DNS server rather than integrated DNS.
-
The
bind-utilspackage is installed on the system runningnsupdate.
9.2. Updating external DNS records using nsupdate Copia collegamentoCollegamento copiato negli appunti!
Generate a DNS records file for use with the nsupdate utility to update external DNS records after topology changes in your IdM deployment. You can also add the command to a script to automate the process.
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 ...]The generated file contains the required DNS records in the format accepted by the
nsupdateutility.For example:
$ cat dns_records_file.nsupdate zone example.com. server 192.0.2.1 ; IPA DNS records update delete _kerberos-master._tcp.example.com. SRV update add _kerberos-master._tcp.example.com. 86400 IN SRV 0 100 88 ipa.example.com. [... output truncated ...]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.
9.3. Sending an nsupdate request secured using TSIG Copia collegamentoCollegamento copiato negli appunti!
Send an nsupdate request secured with Transaction Signature (TSIG) to update external DNS records using a shared secret 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-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
9.4. Sending an nsupdate request secured using GSS-TSIG Copia collegamentoCollegamento copiato negli appunti!
Send an nsupdate request secured with GSS-TSIG to update external DNS records using Kerberos-based authentication instead of a static shared key.
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@REALMRun
nsupdatewith the-goption to enable the GSS-TSIG mode:$ nsupdate -g dns_records_file.nsupdate
9.5. Updating external DNS records with GUI Copia collegamentoCollegamento copiato negli appunti!
Update external DNS records using the external DNS GUI to reflect topology changes in your IdM deployment.
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 ...]- Use the external DNS GUI to update the records.