コンテンツにスキップ

「SlimDNS」の版間の差分

提供: ArchWiki
削除された内容 追加された内容
Kgx (トーク | 投稿記録)
Running: 翻訳
Kgx (トーク | 投稿記録)
29行目: 29行目:
# python slimdns.py
# python slimdns.py


== Configuration ==
== 設定 ==


Configuration is stored under {{ic|/etc/slimDNS/config.py}}, any changes to it requires a restart.
設定は {{ic|/etc/slimDNS/config.py}} の下に保存され、設定を変更する場合は再起動が必要です。


SlimDNS には、データベースを修正するためのツールが付属しており、その名前は {{ic|dnstool}} です。(名称変更の可能性あり)
SlimDNS comes with a tool to modify the database, it is called {{ic|dnstool}} (subject to name change).
このツールは、一連のパラメーターを順番に受け取り、ドメイン(ゾーン)とレコードを作成することができます。
The tool takes a series of parameters in order and can create domains (zones) and records.


{{Note|ドメインを作成すると、デフォルトでは SOA または NS レコードは設定されません。ただし、指定したドメインが見つからない場合、レコードを作成すると、SOA および NS レコードが自動的に設定されます。}}
{{Note|Creating a domain, will not set up SOA or NS records by default. However, creating a record will automatically set up a SOA and NS record if the specified domain is not found.}}


=== Adding a domain (optional) ===
=== ドメインの追加 (オプション) ===


# python dnstool.py example.com
# python dnstool.py example.com


=== Adding a A record ===
=== A レコードの追加 ===


# python dnstool.py example.com 46.21.102.81
# python dnstool.py example.com 46.21.102.81


{{Note|この場合も、ドメイン {{ic|example.com}} が存在しなかった場合、ドメインエントリが挿入され、この新しいドメインに対して適切な SOA および NS レコードも挿入されます。}}
{{Note|Again, if the domain {{ic|example.com}} did not exist, a domain entry would be inserted and appropriate SOA and NS records will be inserted as well for this new domain.}}


同じレコードを追加することもできますが、レコードタイプを定義します。
You can also add the same record, but define the record type:


# python dnstool.py example.com 46.21.102.81 A
# python dnstool.py example.com 46.21.102.81 A


=== MX レコード/複雑なレコードの追加 ===
=== Adding a MX record/complex records ===


レコードの中には、SRV、MX、TXT レコードなど、より複雑な構造を持つものがあります。
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
# python dnstool.py example.com "46.21.102.81 10" MX


これにより、優先度または優先度が10の MX レコードが作成されます。
This would create a MX record, with a priority or preference of 10.


== Handy information ==
== Handy information ==

2022年7月3日 (日) 14:22時点における版

関連記事

ゾーンとレコード情報は 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>';

実行

slimDNS.service起動 して 有効化 します。

または、必要に応じて、手動で実行します。

# python slimdns.py

設定

設定は /etc/slimDNS/config.py の下に保存され、設定を変更する場合は再起動が必要です。

SlimDNS には、データベースを修正するためのツールが付属しており、その名前は dnstool です。(名称変更の可能性あり) このツールは、一連のパラメーターを順番に受け取り、ドメイン(ゾーン)とレコードを作成することができます。

ノート ドメインを作成すると、デフォルトでは SOA または NS レコードは設定されません。ただし、指定したドメインが見つからない場合、レコードを作成すると、SOA および NS レコードが自動的に設定されます。

ドメインの追加 (オプション)

# python dnstool.py example.com

A レコードの追加

# python dnstool.py example.com 46.21.102.81
ノート この場合も、ドメイン example.com が存在しなかった場合、ドメインエントリが挿入され、この新しいドメインに対して適切な SOA および NS レコードも挿入されます。

同じレコードを追加することもできますが、レコードタイプを定義します。

# python dnstool.py example.com 46.21.102.81 A

MX レコード/複雑なレコードの追加

レコードの中には、SRV、MX、TXT レコードなど、より複雑な構造を持つものがあります。 これらのレコードを汎用的に扱うには、レコードの内容を囲み、目的のレコードタイプに必要なデータをすべて追加します。

# python dnstool.py example.com "46.21.102.81 10" MX

これにより、優先度または優先度が10の MX レコードが作成されます。

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