# Running FreeIPA highly available: replication, CA roles, DNS and maintenance workflows

Source: https://forgeone.solutions/en/tech/freeipa-high-availability-replication-ca-dns-maintenance
Language: en
Published: 2026-10-18
Updated: 2026-11-23

Practical FreeIPA HA guide: replication design, CA roles, DNS SRV, clients, maintenance windows and realistic acceptance.

## Overview

Part 11 puts FreeIPA high availability into realistic terms. FreeIPA does not become highly available through a simple load balancer. Multiple servers, correct replication, DNS/SRV resolution, CA roles, client configuration and practiced maintenance workflows matter.

[![FreeIPA Web UI after login in the Fedora 44 sudo lab](https://forgeone.solutions/media/01-freeipa-dashboard-fedora.png)](https://forgeone.solutions/media/01-freeipa-dashboard-fedora.png)

## Lab Baseline

```text
Domain:        example.test
Realm:         EXAMPLE.TEST
Primary:       ipa01.example.test
Replica:       ipa02.example.test
Client:        client01.example.test
Distribution:  Fedora Linux 44
Goal:          production-like FreeIPA operations without using real customer domains
```

## Target State

- At least two FreeIPA servers in separate failure domains.
- Clients know multiple servers or use DNS SRV records.
- LDAP/Kerberos and CA roles are distributed deliberately.
- Replication is checked through topology segments, not host ping.
- Maintenance happens server by server with login, policy and replication tests after each step.

## Install a Replica

```bash
# On ipa02.example.test after Fedora 44 base installation:
dnf install -y freeipa-server freeipa-client
ipa-client-install   --domain example.test   --realm EXAMPLE.TEST   --server ipa01.example.test

ipa-replica-install   --server ipa01.example.test   --setup-ca
```

## Check Topology

```bash
kinit admin
ipa server-find
ipa topologysegment-find domain
ipa topologysegment-find ca
ipa-replica-manage list
ipa-csreplica-manage list
```

## DNS and Client Failover

FreeIPA clients should not depend on a single hostname. Either configure multiple servers on the client or operate DNS SRV records correctly.

```bash
dig SRV _ldap._tcp.example.test
dig SRV _kerberos._tcp.example.test

sssctl domain-status example.test
grep -E 'ipa_server|ipa_domain|krb5_realm' /etc/sssd/sssd.conf
```

## Maintain One Server at a Time

HA is proven during maintenance, not during normal operation. One server is maintained while clients and the second server must continue to work.

```bash
# Example acceptance for ipa01 maintenance:
ssh ipa01.example.test 'ipactl stop'
ssh client01.example.test 'getent passwd opsallowed; kinit opsallowed; klist'
ssh ipa02.example.test 'ipactl status; ipa user-show admin'
ssh ipa01.example.test 'ipactl start'

ipa topologysegment-find domain
ipa topologysegment-find ca
```

## Do Not Forget CA Roles

Many failures only appear later when certificates expire or new hosts are enrolled. CA roles therefore belong in HA planning, not just LDAP/Kerberos.

```bash
ipa server-role-find --role 'CA server'
ipa server-role-find --role 'DNS server'
ipa cert-find --sizelimit=5
```

## Result Check

| Area | Check | Result |
| --- | --- | --- |
| Server | at least two FreeIPA servers visible | PASS required |
| Replication | domain and CA topology segments plausible | PASS required |
| DNS | SRV records for LDAP/Kerberos verifiable | PASS required |
| Client | SSSD knows failover path | PASS required |
| Maintenance | login works while one server is stopped | PASS required |
| CA | CA roles and certificate check validated | PASS required |

## Operational Reality

FreeIPA HA is less a product switch than an operating model. Without regular tests of replication, DNS, certificates, client failover and maintenance, multiple servers do not yet equal reliable high availability.

## Do Not Skip This

- A load balancer does not replace a FreeIPA HA concept.
- Consider CA roles, DNS SRV and client failover together.
- Test maintenance one server at a time; do not only document it.
- Repeat replication and certificate checks regularly.

## Hero image

[![FreeIPA Web UI after login in the Fedora 44 sudo lab](https://forgeone.solutions/media/01-freeipa-dashboard-fedora.png)](https://forgeone.solutions/media/01-freeipa-dashboard-fedora.png)

## Author

Mathias Rumbold

## Category

- [Identity & Access](https://forgeone.solutions/en/tech/freeipa-high-availability-replication-ca-dns-maintenance?category=identity-access)

## Tags

- [FreeIPA](https://forgeone.solutions/en/tech/freeipa-high-availability-replication-ca-dns-maintenance?tags=freeipa)
- [Identity Management](https://forgeone.solutions/en/tech/freeipa-high-availability-replication-ca-dns-maintenance?tags=identity-management)
- [Linux](https://forgeone.solutions/en/tech/freeipa-high-availability-replication-ca-dns-maintenance?tags=linux)
- [Kerberos](https://forgeone.solutions/en/tech/freeipa-high-availability-replication-ca-dns-maintenance?tags=kerberos)
- [Security](https://forgeone.solutions/en/tech/freeipa-high-availability-replication-ca-dns-maintenance?tags=security)
- [Red Hat IdM](https://forgeone.solutions/en/tech/freeipa-high-availability-replication-ca-dns-maintenance?tags=red-hat-idm)
- [fedora](https://forgeone.solutions/en/tech/freeipa-high-availability-replication-ca-dns-maintenance?tags=fedora)

## Need clean identity operations?

ForgeOne supports FreeIPA, Fedora, SSSD, Kerberos, backup, recovery, high availability and technical acceptance.

[Discuss an identity project](https://forgeone.solutions/en/contact)

## Identity Management mit FreeIPA und Keycloak

Die Beiträge bauen praktisch aufeinander auf: Fedora-44-basierter FreeIPA-Server, Linux-Clients, Identity-Lifecycle, Passwort-Richtlinien, HBAC, sudo-Regeln, Kerberos-Keytabs, Updates, Backup, Recovery und Hochverfügbarkeit.

1. [Installing FreeIPA: From the First Server to an Enrolled Linux Client](https://forgeone.solutions/en/tech/install-freeipa)
2. [Connect Linux Clients to FreeIPA: SSSD, Kerberos and Centralized Users](https://forgeone.solutions/en/tech/connect-linux-clients-freeipa-sssd-kerberos-centralized-users)
3. [Managing FreeIPA Users and Groups: Identity Lifecycle in Practice](https://forgeone.solutions/en/tech/managing-freeipa-users-groups-identity-lifecycle-practice)
4. [FreeIPA Password Policies in Practice: Expiration, Lockout and Authentication Behavior](https://forgeone.solutions/en/tech/freeipa-password-policies-expiration-lockout-practice)
5. [FreeIPA HBAC in Practice: Control SSH Access by User, Group and Host](https://forgeone.solutions/en/tech/freeipa-hbac-ssh-access-user-group-host-practice)
6. [FreeIPA sudo rules in practice: delegate commands without root passwords](https://forgeone.solutions/en/tech/freeipa-sudo-rules-command-delegation-practice)
7. [Kerberos service principals and keytabs with FreeIPA in practice](https://forgeone.solutions/en/tech/freeipa-kerberos-service-principals-keytabs-practice)
8. [Updating FreeIPA: package updates, replicas and client compatibility checks](https://forgeone.solutions/en/tech/freeipa-update-package-updates-replicas-client-compatibility)
9. [FreeIPA backup in practice: ipa-backup, certificates, LDAP and recovery windows](https://forgeone.solutions/en/tech/freeipa-backup-ipa-backup-certificates-ldap-recovery)
10. [FreeIPA disaster recovery: restore, replica rebuilds and emergency access testing](https://forgeone.solutions/en/tech/freeipa-disaster-recovery-restore-replica-rebuild-emergency-access)
11. [Running FreeIPA highly available: replication, CA roles, DNS and maintenance workflows (current part)](https://forgeone.solutions/en/tech/freeipa-high-availability-replication-ca-dns-maintenance)
