LoginSignup
1
1

More than 5 years have passed since last update.

CentOS7でndjbdns1.06を動かす

Last updated at Posted at 2014-11-25

参考

手順

192.168.0.50で以下作業実施

yum install -y ndjbdns bind-utils
cd /etc/ndjbdns
cat > data <<...
## +       : lookup domainname -> ip
## ^ PTR   : lookup ip -> domainname
## C CNAME : alias
##
## @ mx    : smaller num is high priority
## ' txt   : spf record
...
tinydns-edit data data.new add ns 0.168.192.in-addr.arpa 127.0.0.1
tinydns-edit data data.new add ns dns.local 192.168.0.50
tinydns-edit data data.new add host dns.local 192.168.0.50
tinydns-edit data data.new add host repository.local 192.168.0.51
tinydns-edit data data.new add host www.local 192.168.0.52
dataからdata.cbdを生成
tinydns-data
サービス登録
systemctl enable tinydns
systemctl start tinydns
動作確認
dig repository.local @127.0.0.1

外部から問い合わせを受け入れる

  • tinydnsが動作しているサーバのIPを192.168.0.50とする。
tinydns.conf
- IP=127.0.0.1
+ IP=127.0.0.1,192.168.0.50
systemctl restart tinydns

動作確認

dig repository.local @192.168.0.50

dataを編集後はtinydns-dataを実行するだけでよい。
(tinydnsのrestartは不要)

続きはndjbdnsのマニュアルにない書式 - Qiita

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1