「SlimDNS」の版間の差分
(英語版から転載) |
(一部翻訳) |
||
6行目: | 6行目: | ||
{{Related articles end}} |
{{Related articles end}} |
||
+ | ゾーンとレコード情報は [[PostgreSQL]] に依存しています。 |
||
− | It relies on [[PostgreSQL]] for its zone and record information. |
||
− | == |
+ | == インストール == |
− | + | {{AUR|SlimDNS-git}} をインストールするか、[https://github.com/Torxed/slimDNS.git github.com/Torxed/slimDNS] のクローンを作成し、手動のセットアップ手順に従います。 |
|
+ | == 手動設定 (オプション) == |
||
− | == Manual setup ''(optional)'' == |
||
− | + | ''slimdns'' という user/role を作成します |
|
[postgres@machine~] createuser --interactive |
[postgres@machine~] createuser --interactive |
2022年7月3日 (日) 14:14時点における版
関連記事
ゾーンとレコード情報は PostgreSQL に依存しています。
目次
インストール
SlimDNS-gitAUR をインストールするか、github.com/Torxed/slimDNS のクローンを作成し、手動のセットアップ手順に従います。
手動設定 (オプション)
slimdns という user/role を作成します
[postgres@machine~] createuser --interactive [postgres@machine~] psql > CREATE DATABASE slimdns OWNER slimdns; > ALTER USER slimdns WITH PASSWORD '<some secure random string>';
Running
start and enable slimDNS.service
.
Or if preferred, running it manually:
# python slimdns.py
Configuration
Configuration is stored under /etc/slimDNS/config.py
, any changes to it requires a restart.
SlimDNS comes with a tool to modify the database, it is called dnstool
(subject to name change).
The tool takes a series of parameters in order and can create domains (zones) and records.
Adding a domain (optional)
# python dnstool.py example.com
Adding a A record
# python dnstool.py example.com 46.21.102.81
You can also add the same record, but define the record type:
# python dnstool.py example.com 46.21.102.81 A
Adding a MX record/complex records
Some records have more complex structure, for instance the SRV, MX or TXT records. In order to be generic in handling these records, enclose the content of the record and add all the necessary data needed for the desired record type.
# python dnstool.py example.com "46.21.102.81 10" MX
This would create a MX record, with a priority or preference of 10.
Handy information
- Updates run time cache every 30 seconds.
- Does support a forwarding DNS server, however, testing on this is limited
- Upon each start, slimdns will attempt to create the database 'slimdns' if not found, but will need this optional permissions to work.
- Might crash for no aparent reason :D