10.2. 查看 DNS 服务池配置
您可以使用 DNS 池配置的副本来对 OpenShift (RHOSO) DNS 服务(指定)上的 Red Hat OpenStack Services 进行故障排除。
注意
在 RHOSO 18.0 中,不支持多个池。
先决条件
-
在工作站上安装了
oc命令行工具。 -
以具有
cluster-admin权限的用户身份登录到可访问 RHOSO 控制平面的工作站。
流程
在
designate-centralpod 中远程运行designate-manage pool命令:$ oc exec -it deployment/designate-central -- \ designate-manage pool show_config输出示例
Pool Configuration: ------------------- also_notifies: [] attributes: {} description: Default BIND Pool id: 794ccc2c-d751-44fe-b57f-8894c9f5c842 name: default nameservers: - host: 172.28.0.100 port: 53 - host: 172.28.0.101 port: 53 - host: 172.28.0.102 port: 53 ns_records: - hostname: ns1.example.org. priority: 10 - hostname: ns2.example.org. priority: 20 targets: - description: BIND9 Server 0 (172.28.0.100) masters: - host: 172.28.0.98 port: 5354 - host: 172.28.0.99 port: 5354 - host: 172.28.0.97 port: 5354 options: host: 172.28.0.100 port: '53' rndc_host: 172.28.0.100 rndc_key_file: /etc/designate/rndc-keys/rndc-key-0 rndc_port: '953' type: bind9 - description: BIND9 Server 1 (172.28.0.101) masters: - host: 172.28.0.99 port: 5354 - host: 172.28.0.97 port: 5354 - host: 172.28.0.98 port: 5354 options: host: 172.28.0.101 port: '53' rndc_host: 172.28.0.101 rndc_key_file: /etc/designate/rndc-keys/rndc-key-1 rndc_port: '953' type: bind9 - description: BIND9 Server 2 (172.28.0.102) masters: - host: 172.28.0.97 port: 5354 - host: 172.28.0.98 port: 5354 - host: 172.28.0.99 port: 5354 options: host: 172.28.0.102 port: '53' rndc_host: 172.28.0.102 rndc_key_file: /etc/designate/rndc-keys/rndc-key-2 rndc_port: '953' type: bind9注意ns_records部分包含 DNS 服务在区域中公告的名称服务器列表,可用于查询。这些名称服务器从外部网络公告。