实验环境:CentOS 6.8 bind-9.8.2-0.47.rc1.el6.x86_64
输入命令:
vim /etc/named.rfc1912.zones #编辑查看区域配置文件
// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
// and http://www.ietf.org/internet-drafts/draft-ietf-dnsop-default-local-zones-02.txt
// (c)2007 R W Franks
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//定义域名正向解析信息
zone "localhost.localdomain" IN {
type master;
file "named.loc