标签:DNS 服务搭建
一:下载BIND软件完成DNS解析功能二:编辑配置文件(怎么访问?访问域?)
[root@localhost named]# vim /etc/named.conf
pid-file "/run/named/named.pid";
session-keyfile "/run/named/session.key";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
zone "jd.com" IN {
type master;
file "jd.com.zone";
allow-update { none; };
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
"/etc/named.conf" 64L, 1775C
三:修改配置文件
[root@localhost named]# vim jd.com.zone
$TTL 1D
@ IN SOA jd.com. root (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS jd
@ A 192.168.1.182
ns A 192.168.1.100
test A 192.168.1.101
ftp A 192.168.1.102
~
标签:DNS 服务搭建
原文地址:http://blog.51cto.com/kangxi/2126656