Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
33.9. DNS Locations
33.9.1. DNS-based Service Discovery Link kopierenLink in die Zwischenablage kopiert!
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
$ 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
$ 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 Link kopierenLink in die Zwischenablage kopiert!
33.9.2.1. DNS Time to Live (TTL) Link kopierenLink in die Zwischenablage kopiert!
1 day.
33.9.3. Creating DNS Locations Link kopierenLink in die Zwischenablage kopiert!
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:
ipa location-add germany
[root@server ~]# ipa location-add germany
----------------------------
Added IPA location "germany"
----------------------------
Location name: germany
33.9.4. Assigning an IdM Server to a DNS Location Link kopierenLink in die Zwischenablage kopiert!
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:systemctl restart named-pkcs11
[root@idmserver-01 ~]# systemctl restart named-pkcs11Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Assigning an IdM Server to a DNS Location from the Command Line
- Optional: List all configured DNS locations:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Assign the server to the DNS location. For example, to assign the location
germanyto the server idmserver-01.idm.example.com, run:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Restart the
named-pkcs11service on the host you assigned in the previous steps the DNS location to:systemctl restart named-pkcs11
[root@idmserver-01 ~]# systemctl restart named-pkcs11Copy to Clipboard Copied! Toggle word wrap Toggle overflow
33.9.5. Configuring a Client to Use IdM Servers in the Same Location Link kopierenLink in die Zwischenablage kopiert!
- 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.10.0.1
nameserver 10.10.0.2
nameserver 10.50.0.1 nameserver 10.50.0.3
nameserver 10.50.0.1
nameserver 10.50.0.3
nameserver 10.30.0.1
nameserver 10.30.0.1
nameserver 10.30.0.1
nameserver 10.30.0.1