8.3. 更新记录集


默认情况下,任何用户可以更新 Red Hat OpenStack Platform DNS 服务(指定)记录集。

先决条件

  • 您的项目必须拥有要更新记录集的区域。

流程

  1. 提供您的凭据文件。

    Example

    $ source ~/overcloudrc
    Copy to Clipboard Toggle word wrap
  2. 您可以使用 openstack recordset set 命令修改记录集。

    示例

    在本例中,用户正在更新记录设置 web.example.com. 使其包含两个记录:

    $ openstack recordset set example.com. web.example.com. --record 192.0.2.5 --record 192.0.2.6
    Copy to Clipboard Toggle word wrap
    注意

    更新记录集时,您可以通过其 ID 或其名称来识别该记录。如果使用其名称,则必须使用完全限定域名(FQDN)。

验证

  • 运行 list 命令以确认您的修改。

    示例

    $ openstack recordset list -c name -c type -c records example.com.
    Copy to Clipboard Toggle word wrap

    输出示例

    +------------------+------+----------------------------------------------+
    | name             | type | records                                      |
    +------------------+------+----------------------------------------------+
    | example.com.     | SOA  | ns1.example.net. admin.example.com 162001261 |
    |                  |      | 6 3599 600 86400 3600                        |
    |                  |      |                                              |
    | example.com.     | NS   | ns1.example.net.                             |
    |                  |      |                                              |
    | web.example.com. | A    | 192.0.2.5 192.0.2.6                          |
    |                  |      |                                              |
    | www.example.com. | A    | 192.0.2.1                                    |
    +------------------+------+----------------------------------------------+
    Copy to Clipboard Toggle word wrap

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat