设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 手机 数据 公司
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

用OpenStack Designate构建一个DNS即服务(DNSaaS)(3)

发布时间:2019-05-15 02:26 所属栏目:117 来源:Amjad Yaseen
导读:填充 Designate 池: su -s /bin/sh -c designate-manage pool update designate 3、启动 Designate 中心和 API 服务: systemctl enable --now designate-central designate-api 4、验证 Designate 服务运行: # o

填充 Designate 池:

  1. su -s /bin/sh -c "designate-manage pool update" designate

3、启动 Designate 中心和 API 服务:

  1. systemctl enable --now designate-central designate-api

4、验证 Designate 服务运行:

  1. # openstack dns service list
  2.  
  3. +--------------+--------+-------+--------------+
  4. | service_name | status | stats | capabilities |
  5. +--------------+--------+-------+--------------+
  6. | central | UP | - | - |
  7. | api | UP | - | - |
  8. | mdns | UP | - | - |
  9. | worker | UP | - | - |
  10. | producer | UP | - | - |
  11. +--------------+--------+-------+--------------+

用外部 DNS 配置 OpenStack Neutron

1、为 Designate 服务配置 iptables:

  1. # iptables -I INPUT -p tcp -m multiport --dports 9001 -m comment --comment "designate incoming" -j ACCEPT
  2. # iptables -I INPUT -p tcp -m multiport --dports 5354 -m comment --comment "Designate mdns incoming" -j ACCEPT
  3. # iptables -I INPUT -p tcp -m multiport --dports 53 -m comment --comment "bind incoming" -j ACCEPT
  4. # iptables -I INPUT -p udp -m multiport --dports 53 -m comment --comment "bind/powerdns incoming" -j ACCEPT
  5. # iptables -I INPUT -p tcp -m multiport --dports 953 -m comment --comment "rndc incoming - bind only" -j ACCEPT
  6. # service iptables save; service iptables restart
  7. # setsebool named_write_master_zones 1

2、 编辑 /etc/neutron/neutron.conf[default] 节:

  1. external_dns_driver = designate

3、 在 /etc/neutron/neutron.conf 中添加 [designate] 节:

  1. [designate]
  2. url = http://{{ CONTROLLER_SERVER_IP }}:9001/v2 ## This end point of designate
  3. auth_type = password
  4. auth_url = http://{{ CONTROLLER_SERVER_IP }}:5000
  5. username = designate
  6. password = rhlab123
  7. project_name = services
  8. project_domain_name = Default
  9. user_domain_name = Default
  10. allow_reverse_dns_lookup = True
  11. ipv4_ptr_zone_prefix_size = 24
  12. ipv6_ptr_zone_prefix_size = 116

4、编辑 neutron.confdns_domain

  1. dns_domain = rhlab.dev.

重启:

  1. # systemctl restart neutron-*

5、在 /etc/neutron/plugins/ml2/ml2_conf.ini 中的组成层 2(ML2)中添加 dns

  1. extension_drivers=port_security,qos,dns

6、在 Designate 中添加区域:

  1. # openstack zone create –email=admin@rhlab.dev rhlab.dev.

(编辑:ASP站长网)

网友评论
推荐文章
    热点阅读