How to install Designate on Ubuntu Server Latest

Designate is a DNS-as-a-Service (DNSaaS) project within the OpenStack community. In this tutorial, we will guide you through the installation of Designate on Ubuntu Server Latest.

Requirements

Installation

  1. Update your system:
sudo apt-get update
sudo apt-get upgrade
  1. Install the required packages:
sudo apt-get install git python-pip python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev libjpeg-dev
  1. Install MySQL:
sudo apt-get install mysql-server python-mysqldb
  1. Install RabbitMQ:
sudo apt-get install rabbitmq-server
sudo rabbitmqctl add_user designate designate
sudo rabbitmqctl set_permissions -p / designate ".*" ".*" ".*"
  1. Create a Designate user and group:
sudo groupadd designate
sudo useradd -g designate designate
  1. Download the Designate code:
mkdir ~/designate
cd ~/designate
git clone https://github.com/openstack/designate.git
  1. Install Designate and its dependencies:
cd designate
sudo pip install -r requirements.txt
sudo python setup.py install
  1. Create a Designate configuration file:
sudo mkdir /etc/designate/
sudo cp etc/designate/designate.conf.sample /etc/designate/designate.conf
sudo chown designate:designate /etc/designate/designate.conf
  1. Edit the Designate configuration file:
sudo nano /etc/designate/designate.conf

And make the following changes:

[service:api]
# ...
auth_strategy = keystone

# ...
api_host = 0.0.0.0
api_port = 9001

[keystone_authtoken]
# ...
auth_uri = http://<Keystone IP>:5000
auth_url = http://<Keystone IP>:35357
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = designate
password = <Designate User PASSWORD>
  1. Create the Designate database:
sudo mysql -u root -p
CREATE DATABASE designate;
GRANT ALL PRIVILEGES ON designate.* TO 'designate'@'localhost' IDENTIFIED BY '<Database password>';
GRANT ALL PRIVILEGES ON designate.* TO 'designate'@'%' IDENTIFIED BY '<Database password>';
exit
  1. Initialize the database:
sudo designate-manage database init
  1. Start the Designate services:
sudo service designate-central start
sudo service designate-api start
sudo service designate-pool-manager start
sudo service designate-mdns start
  1. Verify that the Designate services are running:
sudo service designate-central status
sudo service designate-api status
sudo service designate-pool-manager status
sudo service designate-mdns status

Congratulations! You have successfully installed Designate on Ubuntu Server Latest. You can now use it to manage DNS zones and records.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!