8.3. 更新记录集
默认情况下,任何用户都可以更新 Red Hat OpenStack Platform DNS 服务(designate)记录集。
先决条件
- 您的项目必须拥有一个区域,在其中更新记录集。
流程
提供您的凭据文件。
示例
$ source ~/overcloudrc
您可以使用
openstack recordset set
命令修改记录集。示例
在本例中,用户正在更新记录集
web.example.com.
使其包含两个记录:$ openstack recordset set example.com. web.example.com. --record 192.0.2.5 --record 192.0.2.6
注意更新记录集时,您可以通过其 ID 或名称来识别。如果使用其名称,则必须使用完全限定域名(FQDN)。
验证
运行 list 命令以确认您的修改。
示例
$ openstack recordset list -c name -c type -c records example.com.
输出示例
+------------------+------+----------------------------------------------+ | 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 | +------------------+------+----------------------------------------------+
其他资源
- 命令行界面参考中的 recordset create
- 命令行界面参考中的 recordset list