① 在原有DNS基础上,声明一个逆向解析域,(vim /etc/named/chroot/etc/named.conf)
options {
directory "/var/named";
#原解析域
zone "fbl.com" IN {
type master ;
#逆向解析域声明
zone "1.168.192.IN-ADDR.ARPA" IN{
type master;
② /var/named/chroot/var/named/fbl.com.db 中内容的设置:
$TTL 86400
@ SOA dns.fbl.com. root.dsn.fbl.com. (2008051600 3H 15M 1W 1D)
NS dns.fbl.com.
dns.fbl.com. A 192.168.1.127
www.fbl.com. A 192.168.1.127
#逆向解析
127 PTR www.fbl.com.
160 PTR ftp.fbl.com.
254 PTR mail.fbl.com.
③重启DNS,可用host 192.168.1.127测试
options {
directory "/var/named";
view "smallnet" {
match-clients {192.168.1.0/24;};
zone "1.168.192.IN-ADDR.ARPA" IN{
file "fbl.com.db";
view "bignet" {
match-clients {10.0.0.0/24;};
recursion yes;
zone "fbl.com" IN {
type master ;
zone "0.0.10.IN-ADDR.ARPA" IN{
$TTL 86400
@ SOA dns.fbl.com. root.dsn.fbl.com. (2008051600 3H 15M 1W 1D)
dns.fbl.com. A 10.0.0.254
www.fbl.com. A 10.0.0.254
254 PTR www.fbl.com.
160 PTR ftp.fbl.com.
254 PTR mail.fbl.com.
};
本文地址:http://syank.xrbh.cn/quote/6351.html 迅博思语资讯 http://syank.xrbh.cn/ , 查看更多