You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GRANT ALL PRIVILEGES ON designate.* TO 'designate'@'localhost' IDENTIFIED BY 'password123';
GRANT ALL PRIVILEGES ON designate.* TO 'designate'@'%' IDENTIFIED BY 'password123';exit
Set up openstack components
Source admin credentials
source ~/.adminrc
Create designate user
openstack user create --domain default --password password123 designate
Grant admin role to designate user
openstack role add --project service --user designate admin
Create service entry
openstack service create --name designate --description "DNS" dns
Create API endpoints
foriin public internal admin;do \
openstack endpoint create --region RegionOne \
dns $i http://controller:9001;done
test query ip range here. may need to allow mgmt network
include "/etc/bind/rndc.key";options {#...allow-new-zones yes;request-ixfr no;listen-on port 53 { any; };listen-on-ipv6 port 53 { none; };recursion no;allow-query { any; };};controls {inet 0.0.0.0 port 953allow { localhost; } keys { "designate"; };};
Restart bind
systemctl restart bind9.service
Configure pools
Create pool file /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: Default Poolattributes: {}# 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: <network node hostname>.priority: 1# List out the nameservers for this pool. These are the actual BIND servers.# We use these to verify changes have propagated to all nameservers.nameservers:
- host: <ip of bind server>port: 53# List out the targets for this pool. For BIND there will be one# entry for each BIND server, as we have to run rndc command on each servertargets:
- type: bind9description: BIND9 Server 1# 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: <ip of mdns host>port: 5354# BIND Configuration optionsoptions:
host: <ip of mdns host>port: 53rndc_host: <ip of mdns host>rndc_port: 953rndc_key_file: /etc/bind/rndc.key
openstack zone create --email dnsmaster@example.com example.com.
openstack zone create --email dnsmaster@example.com 0.0.10.in-addr.arpa.
openstack zone list
Create a recordset
openstack recordset create --record '10.0.0.10' --type A example.com. node1
openstack recordset create --record 'node01.example.com.' --type PTR 0.0.10.in-addr.arpa. 10
openstack recordset list example.com.
openstack recordset list 0.0.10.in-addr.arpa.