差分

提供: fukudat.net
ナビゲーションに移動検索に移動
776 バイト除去 、 2018年8月31日 (金) 07:07
<pre>
$ cd /etc/bind
$ ls -l</pre>total 52-rw-r--r-- 1 root root 3954 Jan 16 2018 このディレクトリ /etc/bind を group "bind.keys" で書き込み可能にする。そうしないとDDNSがpermission deniedでダイナミックにならない。-rw-r--r-- 1 root root 237 Jan 16 2018 db.0<pre>-rw-r--r-- 1 root root 271 Jan 16 2018 db.127$ sudo chmod g+w /etc/bind-rw-r--r-- 1 root root 237 Jan 16 2018 db.255</pre>-rw-r--r-- 1 root root 353 Jan 16 2018 db.emptyapparmorがインストールされていたら、その設定ファイルも変更して bind が /etc/bind ディレクトリに書き込めるようにする。-rw-r--r-- 1 root root 270 Jan 16 2018 db.local<pre>-rw-r--r-- 1 root root 3171 Jan 16 2018 db$ cd /etc/apparmor.rootd/-rw-r--r-- 1 root bind 463 Jan 16 2018 named.conf-rw-r--r-- 1 root bind 490 Jan 16 2018 named$ sudo vi usr.confsbin.default-zones-rw-r--r-- 1 root bind 165 Jan 16 2018 named.conf.local-rw-r--r-- 1 root bind 890 Aug 31 02:36 named.conf.options-/etc/bind/** rw-r----- 1 bind bind , 77 Aug 31 02:36 rndc.key# <-rw-r--r-- 1 root root 1317 Jan 16 2018 zones.rfc1918を rw に書き換える:
</pre>
options {
directory "/var/cache/bind";
 
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
 
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
/etc/bind/named.conf.local を編集.
<pre>
//
// Do any local configuration here
//
 
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
 
zone "fukudat.com" {
type master;
</pre>
zone file "/etc/bind/db.fukudat.com" を以下のように作る。を以下のように作る。owner を bind.bind にする。
<pre>
$ORIGIN fukudat.com.
</pre>
zone file "db.0.168.192" を以下のように作る。を以下のように作る。owner を bind.bind にする。
<pre>
$TTL 86400 ; 1 day

案内メニュー