DNS<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
1、安装bind及相关软件包;
2、安装caching-nameserver.rpm包;
3、在
拥有帝国一切,皆有可能。欢迎访问phome.net/etc下面修改named.caching-nameserver.conf文件;
4、在/etc下面的named.rfc1912.zones文件中创建zone;
5、在路径
拥有帝国一切,皆有可能。欢迎访问phome.net/var/named/chroot/var/named下创建并配置zone文件;
6、用nslookup分别对正向和反向做解析.
/etc/named.caching-nameserver.conf
//
// named.caching-nameserver.conf
//
拥有帝国一切,皆有可能。欢迎访问phome.net// Provided by Red Hat caching-nameserver package to configure the
// ISC BIND named(8) DNS server as a caching .ly nameserver
// (as a localhost DNS resolver .ly).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// DO NOT EDIT THIS FILE - use system-config-bind or an editor
// to create named.conf - edits to this file will be lost .
// caching-nameserver package upgrade.
//
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { any; };
拥有帝国一切,皆有可能。欢迎访问phome.net 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_stats.txt";
query-source port 53;
query-source-v6 port 53;
allow-query { any; };
};
logging {
channel default_debug {
拥有帝国一切,皆有可能。欢迎访问phome.netfile "data/named.run";
severity dynamic;
};
};
view localhost_resolver {
match-clients { any; };
match-destinations { any; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
/etc/named.rfc1912.zones
// named.rfc1912.zones:
//
拥有帝国一切,皆有可能。欢迎访问phome.net
service named restart
拥有帝国一切,皆有可能。欢迎访问phome.net |