In this tutorial, we will be installing the PDNS Gui from https://github.com/odoucet/pdns-gui on OpenBSD.
Before starting the installation, make sure that you have:
# pkg_add -Uuv
# pkg_add py3-pip py3-setuptools mariadb-server mariadb-client
# pip3.8 install pdns
# pip3.8 install Flask
# pip3.8 install Flask-WTF
# pip3.8 install PyMySQL
# git clone https://github.com/odoucet/pdns-gui.git
# cd pdns-gui
# vi config.py
config.py
file:SECRET_KEY = 'your_secret_key_here'
MYSQL_HOST = 'localhost'
MYSQL_USER = 'your_mysql_user_here'
MYSQL_PASS = 'your_mysql_password_here'
MYSQL_DB = 'your_mysql_database_here'
PDNS_HOST = 'localhost'
PDNS_APIKEY = 'your_pdns_api_key_here'
PDNS_PORT = '8081'
Save and exit the config file (press ESC + :wq
in vi).
Import the SQL schema:
# mysql -u your_mysql_user_here -p < schema.sql
# python3.8 pdns-gui.py
http://localhost:5000
.You should now see the PDNS Gui interface where you can manage your PowerDNS server.
Congratulations, you have successfully installed PDNS Gui on OpenBSD. We hope this tutorial was helpful for you!
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!