Ce contenu n'est pas disponible dans la langue sélectionnée.
33.9. DNS Locations
33.9.1. DNS-based Service Discovery Copier lienLien copié sur presse-papiers!
LDAP or Kerberos. One typical type of operation is to allow clients to locate authentication servers within the closest network infrastructure, because they provide a higher throughput and lower network latency, lowering overall costs.
- No need for clients to be explicitly configured with names of nearby servers.
- DNS servers are used as central providers of policy. Clients using the same DNS server have access to the same policy about service providers and their preferred order.
Example 33.10. DNS Location Independent Results
$ dig -t SRV +short _kerberos._tcp.idm.example.com
0 100 88 idmserver-01.idm.example.com.
0 100 88 idmserver-02.idm.example.com.
0(priority): Priority of the target host. A lower value is preferred.100(weight). Specifies a relative weight for entries with the same priority. For further information, see RFC 2782, section 3.88(port number): Port number of the service.- Canonical name of the host providing the service.
germany:
Example 33.11. DNS Location-based Results
$ dig -t SRV +short _kerberos._tcp.idm.example.com
_kerberos._tcp.germany._locations.idm.example.com.
0 100 88 idmserver-01.idm.example.com.
50 100 88 idmserver-02.idm.example.com.
idmserver-01.idm.example.com has the lowest priority value and is therefore preferred. The idmserver-02.idm.example.com has a higher priority and thus is used only as backup for cases when the preferred host is unavailable.
33.9.2. Deployment Considerations for DNS Locations Copier lienLien copié sur presse-papiers!
33.9.2.1. DNS Time to Live (TTL) Copier lienLien copié sur presse-papiers!
1 day.
33.9.3. Creating DNS Locations Copier lienLien copié sur presse-papiers!
Creating DNS Locations from the Web UI
- Open the IPA Server tab, and select Topology subtab.
- Click IPA Locations in the navigation bar.
- Click at the top of the locations list.
- Fill in the location name.
- Click the button to save the location.
Creating DNS Locations from the Command Line
germany, enter:
[root@server ~]# ipa location-add germany
----------------------------
Added IPA location "germany"
----------------------------
Location name: germany
33.9.4. Assigning an IdM Server to a DNS Location Copier lienLien copié sur presse-papiers!
Assigning an IdM Server to a DNS Location from the Web UI
- Open the IPA Server tab, and select Topology subtab.
- Click IPA Servers in the navigation.
- Click on the IdM server name.
- Select a DNS location, and optionally set a service weight:
Figure 33.34. Assigning a Server to a DNS Location
- Click .
- Restart the
named-pkcs11service on the host you assigned in the previous steps the DNS location to:[root@idmserver-01 ~]# systemctl restart named-pkcs11
Assigning an IdM Server to a DNS Location from the Command Line
- Optional: List all configured DNS locations:
[root@server ~]# ipa location-find ----------------------- 2 IPA locations matched ----------------------- Location name: australia Location name: germany ----------------------------- Number of entries returned: 2 ----------------------------- - Assign the server to the DNS location. For example, to assign the location
germanyto the server idmserver-01.idm.example.com, run:[root@server ~]# ipa server-mod idmserver-01.idm.example.com --location=germany ipa: WARNING: Service named-pkcs11.service requires restart on IPA server idmserver-01.idm.example.com to apply configuration changes. -------------------------------------------------- Modified IPA server "idmserver-01.idm.example.com" -------------------------------------------------- Servername: idmserver-01.idm.example.com Min domain level: 0 Max domain level: 1 Location: germany Enabled server roles: DNS server, NTP server - Restart the
named-pkcs11service on the host you assigned in the previous steps the DNS location to:[root@idmserver-01 ~]# systemctl restart named-pkcs11
33.9.5. Configuring a Client to Use IdM Servers in the Same Location Copier lienLien copié sur presse-papiers!
- If a DHCP server assigns the DNS server IP addresses to the clients, configure the DHCP service. For further details about assigning a DNS server in your DHCP service, see the documentation of the DHCP service.
- If your clients do not receive the DNS server IP addresses from a DHCP server, manually set the IPs in the client's network configuration. For further details about configuring the network on Red Hat Enterprise Linux, see the Configuring Network Connection Settings section in the Red Hat Enterprise Linux Networking Guide.
Example 33.12. Different Name Server Entries Depending on the Location of the Client
/etc/resolv.conf file for clients in different locations:
nameserver 10.10.0.1
nameserver 10.10.0.2
nameserver 10.50.0.1
nameserver 10.50.0.3
nameserver 10.30.0.1
nameserver 10.30.0.1