2022-02-17 19:15:11 +01:00
|
|
|
1. [Overview](#overview)
|
2022-02-17 21:35:40 +01:00
|
|
|
2. [Features](#features)
|
|
|
|
3. [Installation](#installation)
|
|
|
|
4. [Configuration](#configuration)
|
|
|
|
5. [The API](#theapi)
|
|
|
|
6. [Conclusion](#conclusion)
|
|
|
|
|
|
|
|
<a name="overview"></a>
|
|
|
|
# Overview
|
2022-02-18 21:33:34 +01:00
|
|
|
|
|
|
|
This package provides an API for the Bind nameserver.
|
|
|
|
It consists of two parts, the API itself and a CLI tools to configure the available functions.
|
|
|
|
|
|
|
|
|
2022-02-17 21:35:40 +01:00
|
|
|
<a name="features"></a>
|
|
|
|
# Features
|
2022-02-18 21:33:34 +01:00
|
|
|
|
|
|
|
## CLI
|
|
|
|
|
|
|
|
![Php Interpreter](https://bindapi.24unix.net/assets/bindAPI_cli.png)
|
|
|
|
|
|
|
|
The CLI is used to perform configuration and some checks:
|
|
|
|
|
|
|
|
* check
|
|
|
|
- Permissions: The API needs to be able to access some files and create new ones
|
|
|
|
- Panels: This checks one or all panels if every nameserver is aware of all domains
|
|
|
|
- Domain: TODO
|
|
|
|
* panels
|
|
|
|
- List: List all panels which are configured on this server
|
|
|
|
- Create: Adds a new panel to the configuration
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a name="installation"></a>
|
2022-02-17 19:15:11 +01:00
|
|
|
# Installation
|
|
|
|
|
2022-02-18 21:33:34 +01:00
|
|
|
<a name="configuration"></a>
|
|
|
|
# Configuration
|
|
|
|
|
|
|
|
<a name="theapi"></a>
|
|
|
|
# The API
|
|
|
|
|
|
|
|
<a name="conclusion"></a>
|
|
|
|
# Conclusion
|
|
|
|
|
2022-02-17 19:15:11 +01:00
|
|
|
In KeyHelp, install PHP 8.1
|
|
|
|
|
|
|
|
Settings => Configuration => Feature Settings => PHP Interpreter
|
2022-02-17 21:35:40 +01:00
|
|
|
![Php Interpreter](https://bindapi.24unix.net/assets/bindAPI_php1.png)
|
2022-02-17 19:15:11 +01:00
|
|
|
|
2022-02-18 19:42:54 +01:00
|
|
|
![Php Interpreter](https://bindapi.24unix.net/assets/bindAPI_php2.png)
|
|
|
|
|
|
|
|
![Php Interpreter](https://bindapi.24unix.net/assets/bindAPI_php3.png)
|
|
|
|
|
|
|
|
![Php Interpreter](https://bindapi.24unix.net/assets/bindAPI_php4.png)
|
|
|
|
|
2022-02-17 19:15:11 +01:00
|
|
|
Set the checkmark and press Save.
|
|
|
|
|
|
|
|
Wait about a minute, the installation is started via a cronjob which runs every minute.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
As root (or via sudo):
|
|
|
|
|
|
|
|
`apt install git`
|
|
|
|
|
|
|
|
Creat a new user for the domain, adn then a new domain, e.g. ns3.24unix.net.
|
|
|
|
|
|
|
|
Set the PHP Version to 8.1:
|
|
|
|
|
|
|
|
|
|
|
|
|