反向解析
实验:一台装有Centos7的虚拟机,解析IP地址192.168.27.10,域名www.shaole.com
1.1安装bind
[root@localhost ~]# yum -y install bind
1.2配置主配置文件,将监听地址和可使用的DNS网段设为所有
[root@localhost ~]# vim /etc/named.conf
options {
listen-on port 53 {
any; };//将监听地址设为any
listen-on-v6 port 53 {
::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stat