tar zxf bind-9.11.14.tar.gz
cd bind-9.11.14
./configure -h
./configure
make depend
make
make install
make clean
/usr/sbin/rndc-confgen -a -c /etc/rndc.key
/usr/sbin/rndc-confgen > /etc/rndc.conf
vi /etc/rndc.key
vi /etc/rndc.conf
vi /etc/named.conf
listen-on port 53 { any; };
allow-query { any; };
#listen-on-v6 port 53 { ::1; };
vi /etc/named.rfc1912.zones
zone "網域名稱" IN { type master; file "網域名稱設定檔"; allow-update { none; }; };
先把檔案傳到 /var/named/chroot/var/named
再做權限變更
chown root.named named.*
chmod 640 named.*
然後移動檔案至 /var/named
mv named.* /var/named
systemctl start named
systemctl enable named
新增時間 | 2020-01-22 |
最後更新 | 2022-02-09 |