10.2. 查看 DNS 服务池配置


您可以使用 DNS 池配置的副本来对 OpenShift (RHOSO) DNS 服务(指定)上的 Red Hat OpenStack Services 进行故障排除。

注意

在 RHOSO 18.0 中,不支持多个池。

先决条件

  • 在工作站上安装了 oc 命令行工具。
  • 以具有 cluster-admin 权限的用户身份登录到可访问 RHOSO 控制平面的工作站。

流程

  • designate-central pod 中远程运行 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 服务在区域中公告的名称服务器列表,可用于查询。这些名称服务器从外部网络公告。

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部