LoginSignup
1
0

More than 3 years have passed since last update.

webarenaでubuntu その8

Last updated at Posted at 2019-08-13

概要

webarenaでubuntu18.04やってみた。
bindやってみた。
zone書いてみた。

named.confの修正

zone "hoge.com" {
    type master;
    file "/etc/bind/hoge.com.zone";
};
zone "192.192.192.192.in-addr.arpa" {
    type master;
    file "/etc/bind/192.192.192.192.rev"; 
};

named.confの検証

named-checkconf

zoneファイルを作る。

$TTL    86400
@   IN  SOA     hoge.com. root (
    2019081302
    10800
    3600
    604800
    86400
)
@   IN NS ns.hoge.com.
@   IN MX 10 mail.hoge.com.
@   IN A 192.192.192.192
ns   IN A 192.192.192.192
www  IN A 192.192.192.192
mail IN A 192.192.192.192
$TTL    86400
@   IN  SOA     hoge.com. root (
    2019081301
    10800
    3600
    604800
    86400
)
@   IN NS ns.hoge.com.
@   IN PTR hoge.com.

zoneファイルの検証

named-checkzone hoge.com /etc/bind/hoge.com.zone

確認

dig @ns.hoge.com hoge.com

以上。

1
0
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
0