加入收藏 | 设为首页 | 会员中心 | 我要投稿 厦门网 (https://www.xiamenwang.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 创业 > 正文

用OpenStack Designate实现一个DNS即服务

发布时间:2021-05-22 17:55:45 所属栏目:创业 来源:互联网
导读:配置 bind(DNS 服务器) 1、生成 RNDC 文件: rndc - confgen - a - k designate - c / etc / rndc . key - r / dev / urandom cat EOF etcrndc . conf include

#su-s /bin/sh -c "designate-manage database sync" designate

2、 创建 Designate 的 pools.yaml 文件(包含 target 和 bind 细节):

编辑 /etc/designate/pools.yaml:

- name:default

#The name is immutable.There will be no option to change the name after

# creation and the only way will to change it will be to delete it

#(and all zones associated with it)and recreate it.

description:DefaultPool

 

attributes:{}

 

#List out the NS records for zones hosted within this pool

#This should be a record that is created outside of designate, that

# points to the public IP of the controller node.

ns_records:

-hostname:{{Controller_FQDN}}.#Thisis mDNS

priority:1

 

#List out the nameservers forthis pool.These are the actual BIND servers.

#Weuse these to verify changes have propagated to all nameservers.

nameservers:

- host:{{ DNS_SERVER_IP }}

port:53

 

#List out the targets forthis pool.For BIND there will be one

# entry for each BIND server,as we have to run rndc command on each server

targets:

- type: bind9

description: BIND9 Server1

 

#List out the designate-mdns servers from which BIND servers should

# request zone transfers (AXFRs)from.

#This should be the IP of the controller node.

#If you have multiple controllers you can add multiple masters

# by running designate-mdns on them,and adding them here.

masters:

- host:{{ CONTROLLER_SERVER_IP }}

port:5354

 

# BIND Configuration options

options:

host:{{ DNS_SERVER_IP }}

port:53

rndc_host:{{ DNS_SERVER_IP }}

rndc_port:953

rndc_key_file:/etc/rndc.key

rndc_config_file:/etc/rndc.conf

(编辑:厦门网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读