OpenStack Epoxy : How to use Designate2025/04/24 |
This is how to use Designate. This example is based on the environment like follows. ------------+--------------------------+--------------------------+------------ | | | eth0|10.0.0.30 eth0|10.0.0.50 eth0|10.0.0.51 +-----------+-----------+ +-----------+-----------+ +-----------+-----------+ | [ dlp.srv.world ] | | [ network.srv.world ] | | [ node01.srv.world ] | | (Control Node) | | (Network Node) | | (Compute Node) | | | | | | | | MariaDB RabbitMQ | | Open vSwitch | | Libvirt | | Memcached Nginx | | Neutron Server | | Nova Compute | | Keystone httpd | | OVN-Northd | | Open vSwitch | | Glance Nova API | | Nginx iSCSI Target | | OVN Metadata Agent | | Cinder API | | Cinder Volume | | OVN-Controller | | | | Designate Services | | | +-----------------------+ +-----------------------+ +-----------------------+ |
[1] | Login as a user you'd like to set DNS entry. It's OK to work on any node. (This example is on Control Node) For example, create a [server.education] zone. |
ubuntu@dlp ~(keystone)$ openstack zone create --email dnsmaster@server.education server.education. +----------------+--------------------------------------+ | Field | Value | +----------------+--------------------------------------+ | action | CREATE | | attributes | | | created_at | 2025-04-24T01:39:01.000000 | | description | None | | email | dnsmaster@server.education | | id | 6a11dc14-23ff-468a-89b3-f2150e6c316e | | masters | | | name | server.education. | | pool_id | 794ccc2c-d751-44fe-b57f-8894c9f5c842 | | project_id | 407400ec8d16434e9badf4ceb9d71f1e | | serial | 1745458741 | | shared | False | | status | PENDING | | transferred_at | None | | ttl | 3600 | | type | PRIMARY | | updated_at | None | | version | 1 | +----------------+--------------------------------------+ # OK if [status] is [ACTIVE] ubuntu@dlp ~(keystone)$ openstack zone list +------------------+------------------+---------+------------+--------+--------+ | id | name | type | serial | status | action | +------------------+------------------+---------+------------+--------+--------+ | 6a11dc14-23ff- | server.education | PRIMARY | 1745458741 | ACTIVE | NONE | | 468a-89b3- | . | | | | | | f2150e6c316e | | | | | | +------------------+------------------+---------+------------+--------+--------+ # add [A] record ubuntu@dlp ~(keystone)$ openstack recordset create --record '192.168.100.10' --type A server.education. node01 +-------------+--------------------------------------+ | Field | Value | +-------------+--------------------------------------+ | action | CREATE | | created_at | 2025-04-24T01:39:50.000000 | | description | None | | id | 9a2e13de-4efb-40cf-be82-d2060a75039a | | name | node01.server.education. | | project_id | 407400ec8d16434e9badf4ceb9d71f1e | | records | 192.168.100.10 | | status | PENDING | | ttl | None | | type | A | | updated_at | None | | version | 1 | | zone_id | 6a11dc14-23ff-468a-89b3-f2150e6c316e | | zone_name | server.education. | +-------------+--------------------------------------+ # OK if [status] is [ACTIVE] ubuntu@dlp ~(keystone)$ openstack recordset list server.education. +-----------------+-----------------+------+-----------------+--------+--------+ | id | name | type | records | status | action | +-----------------+-----------------+------+-----------------+--------+--------+ | 609ba29a-d47a- | server.educatio | SOA | network.srv.wor | ACTIVE | NONE | | 433c-9824- | n. | | ld. dnsmaster.s | | | | 7b312bb1aa48 | | | erver.education | | | | | | | . 1745458795 | | | | | | | 3507 600 86400 | | | | | | | 3600 | | | | a4756a60-1b92- | server.educatio | NS | network.srv.wor | ACTIVE | NONE | | 49c0-86e4- | n. | | ld. | | | | a2e753cc2bfb | | | | | | | 9a2e13de-4efb- | node01.server.e | A | 192.168.100.10 | ACTIVE | NONE | | 40cf-be82- | ducation. | | | | | | d2060a75039a | | | | | | +-----------------+-----------------+------+-----------------+--------+--------+ # verify name resolution ubuntu@dlp ~(keystone)$ dig -p 5354 @network.srv.world node01.server.education. ; <<>> DiG 9.18.30-0ubuntu0.24.04.2-Ubuntu <<>> -p 5354 @network.srv.world node01.server.education. ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44935 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; WARNING: recursion requested but not available ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 8192 ;; QUESTION SECTION: ;node01.server.education. IN A ;; ANSWER SECTION: node01.server.education. 3600 IN A 192.168.100.10 ;; Query time: 7 msec ;; SERVER: 10.0.0.50#5354(network.srv.world) (UDP) ;; WHEN: Thu Apr 24 01:40:24 UTC 2025 ;; MSG SIZE rcvd: 68 |
[2] | For example, create a [192.168.100.0/24] reverse zone. |
ubuntu@dlp ~(keystone)$ openstack zone create --email dnsmaster@server.education 100.168.192.in-addr.arpa. +----------------+--------------------------------------+ | Field | Value | +----------------+--------------------------------------+ | action | CREATE | | attributes | | | created_at | 2025-04-24T01:41:09.000000 | | description | None | | email | dnsmaster@server.education | | id | be7cdec0-9996-4311-8463-4fc5e8607807 | | masters | | | name | 100.168.192.in-addr.arpa. | | pool_id | 794ccc2c-d751-44fe-b57f-8894c9f5c842 | | project_id | 407400ec8d16434e9badf4ceb9d71f1e | | serial | 1745458869 | | shared | False | | status | PENDING | | transferred_at | None | | ttl | 3600 | | type | PRIMARY | | updated_at | None | | version | 1 | +----------------+--------------------------------------+ # OK if [status] is [ACTIVE] ubuntu@dlp ~(keystone)$ openstack zone list +------------------+------------------+---------+------------+--------+--------+ | id | name | type | serial | status | action | +------------------+------------------+---------+------------+--------+--------+ | 6a11dc14-23ff- | server.education | PRIMARY | 1745458795 | ACTIVE | NONE | | 468a-89b3- | . | | | | | | f2150e6c316e | | | | | | | be7cdec0-9996- | 100.168.192.in- | PRIMARY | 1745458869 | ACTIVE | NONE | | 4311-8463- | addr.arpa. | | | | | | 4fc5e8607807 | | | | | | +------------------+------------------+---------+------------+--------+--------+ # add PTR record ubuntu@dlp ~(keystone)$ openstack recordset create --record 'node01.server.education.' --type PTR 100.168.192.in-addr.arpa. 10 +-------------+--------------------------------------+ | Field | Value | +-------------+--------------------------------------+ | action | CREATE | | created_at | 2025-04-24T01:41:50.000000 | | description | None | | id | 68dd14b3-c6e9-491a-b409-80d753b4b314 | | name | 10.100.168.192.in-addr.arpa. | | project_id | 407400ec8d16434e9badf4ceb9d71f1e | | records | node01.server.education. | | status | PENDING | | ttl | None | | type | PTR | | updated_at | None | | version | 1 | | zone_id | be7cdec0-9996-4311-8463-4fc5e8607807 | | zone_name | 100.168.192.in-addr.arpa. | +-------------+--------------------------------------+ # OK if [status] is [ACTIVE] ubuntu@dlp ~(keystone)$ openstack recordset list 100.168.192.in-addr.arpa. +-----------------+-----------------+------+-----------------+--------+--------+ | id | name | type | records | status | action | +-----------------+-----------------+------+-----------------+--------+--------+ | 00661e29-1f7c- | 100.168.192.in- | SOA | network.srv.wor | ACTIVE | NONE | | 4041-9df7- | addr.arpa. | | ld. dnsmaster.s | | | | e8e1f9a90958 | | | erver.education | | | | | | | . 1745458915 | | | | | | | 3528 600 86400 | | | | | | | 3600 | | | | 753ce3ae-0546- | 100.168.192.in- | NS | network.srv.wor | ACTIVE | NONE | | 4677-8da5- | addr.arpa. | | ld. | | | | 0eaa1144627c | | | | | | | 68dd14b3-c6e9- | 10.100.168.192. | PTR | node01.server.e | ACTIVE | NONE | | 491a-b409- | in-addr.arpa. | | ducation. | | | | 80d753b4b314 | | | | | | +-----------------+-----------------+------+-----------------+--------+--------+ # verify address resolution ubuntu@dlp ~(keystone)$ dig -p 5354 @network.srv.world -x 192.168.100.10 ; <<>> DiG 9.18.30-0ubuntu0.24.04.2-Ubuntu <<>> -p 5354 @network.srv.world -x 192.168.100.10 ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15456 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; WARNING: recursion requested but not available ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 8192 ;; QUESTION SECTION: ;10.100.168.192.in-addr.arpa. IN PTR ;; ANSWER SECTION: 10.100.168.192.in-addr.arpa. 3600 IN PTR node01.server.education. ;; Query time: 7 msec ;; SERVER: 10.0.0.50#5354(network.srv.world) (UDP) ;; WHEN: Thu Apr 24 01:42:32 UTC 2025 ;; MSG SIZE rcvd: 93 |
[3] | To delete record or zone, do like follows. |
ubuntu@dlp ~(keystone)$ openstack recordset list server.education. +-----------------+-----------------+------+-----------------+--------+--------+ | id | name | type | records | status | action | +-----------------+-----------------+------+-----------------+--------+--------+ | 609ba29a-d47a- | server.educatio | SOA | network.srv.wor | ACTIVE | NONE | | 433c-9824- | n. | | ld. dnsmaster.s | | | | 7b312bb1aa48 | | | erver.education | | | | | | | . 1745458795 | | | | | | | 3507 600 86400 | | | | | | | 3600 | | | | a4756a60-1b92- | server.educatio | NS | network.srv.wor | ACTIVE | NONE | | 49c0-86e4- | n. | | ld. | | | | a2e753cc2bfb | | | | | | | 9a2e13de-4efb- | node01.server.e | A | 192.168.100.10 | ACTIVE | NONE | | 40cf-be82- | ducation. | | | | | | d2060a75039a | | | | | | +-----------------+-----------------+------+-----------------+--------+--------+ # delete [node01] record ubuntu@dlp ~(keystone)$ openstack recordset delete server.education. node01.server.education. +-------------+--------------------------------------+ | Field | Value | +-------------+--------------------------------------+ | action | DELETE | | created_at | 2025-04-24T01:39:50.000000 | | description | None | | id | 9a2e13de-4efb-40cf-be82-d2060a75039a | | name | node01.server.education. | | project_id | 407400ec8d16434e9badf4ceb9d71f1e | | records | 192.168.100.10 | | status | PENDING | | ttl | None | | type | A | | updated_at | 2025-04-24T01:43:26.000000 | | version | 2 | | zone_id | 6a11dc14-23ff-468a-89b3-f2150e6c316e | | zone_name | server.education. | +-------------+--------------------------------------+ubuntu@dlp ~(keystone)$ openstack recordset list server.education. +----------------+----------------+------+------------------+---------+--------+ | id | name | type | records | status | action | +----------------+----------------+------+------------------+---------+--------+ | 609ba29a-d47a- | server.educati | SOA | network.srv.worl | PENDING | UPDATE | | 433c-9824- | on. | | d. dnsmaster.ser | | | | 7b312bb1aa48 | | | ver.education. | | | | | | | 1745459010 3507 | | | | | | | 600 86400 3600 | | | | a4756a60-1b92- | server.educati | NS | network.srv.worl | ACTIVE | NONE | | 49c0-86e4- | on. | | d. | | | | a2e753cc2bfb | | | | | | +----------------+----------------+------+------------------+---------+--------+ubuntu@dlp ~(keystone)$ openstack zone list +------------------+------------------+---------+------------+--------+--------+ | id | name | type | serial | status | action | +------------------+------------------+---------+------------+--------+--------+ | 6a11dc14-23ff- | server.education | PRIMARY | 1745459010 | ACTIVE | NONE | | 468a-89b3- | . | | | | | | f2150e6c316e | | | | | | | be7cdec0-9996- | 100.168.192.in- | PRIMARY | 1745458915 | ACTIVE | NONE | | 4311-8463- | addr.arpa. | | | | | | 4fc5e8607807 | | | | | | +------------------+------------------+---------+------------+--------+--------+ # delete [server.education.] zone ubuntu@dlp ~(keystone)$ openstack zone delete server.education. +----------------+--------------------------------------+ | Field | Value | +----------------+--------------------------------------+ | action | DELETE | | attributes | | | created_at | 2025-04-24T01:39:01.000000 | | description | None | | email | dnsmaster@server.education | | id | 6a11dc14-23ff-468a-89b3-f2150e6c316e | | masters | | | name | server.education. | | pool_id | 794ccc2c-d751-44fe-b57f-8894c9f5c842 | | project_id | 407400ec8d16434e9badf4ceb9d71f1e | | serial | 1745459010 | | shared | False | | status | PENDING | | transferred_at | None | | ttl | 3600 | | type | PRIMARY | | updated_at | 2025-04-24T01:45:10.000000 | | version | 7 | +----------------+--------------------------------------+ubuntu@dlp ~(keystone)$ openstack zone list +------------------+------------------+---------+------------+--------+--------+ | id | name | type | serial | status | action | +------------------+------------------+---------+------------+--------+--------+ | be7cdec0-9996- | 100.168.192.in- | PRIMARY | 1745458915 | ACTIVE | NONE | | 4311-8463- | addr.arpa. | | | | | | 4fc5e8607807 | | | | | | +------------------+------------------+---------+------------+--------+--------+ |
Sponsored Link |