LinuxÒÁµéÔ°ÂÛ̳'s Archiver

beini2001 ·¢±íÓÚ 2004-2-17 12:36

Çë´ó¼Ò°ïæ¿´¿´ÎªÊ²Ã´ÎÒµÄdnsÀÏÊǽâÎö²»ÁËлл

ÔÚFREEBSD4.8ÏÂÃæ×öµÄDNS½âÎöÄ¿µÄÊǽâÎöwgczx.com
»·¾³ÊÇÕâÑùµÄ
ÓÃÀ´ÓòÃû½âÎöµÄ»úÆ÷µÄÃû×ÖÊÇdns.wgczx.comµØÖ·ÊÇ218.4.84.218
È»ºóÔÚÕâ¸öÉÏÃæÎÒÏë½âÎöÒ»¸öwwwºÍÒ»¸ömail·þÎñ
ÆäÖÐwwwÓõÄÊÇ218.4.84.218
mailÉèÏëʹÓõÄÊÇÁíÍâÒ»¸öipµØÖ·ÊÇ218.4.84.222
µ«ÊÇmail.wgczx.comÀÏÊDz»ÄܽâÎö³É¹¦
Çë´ó¼Ò°ïÎÒ¿´¿´µ½µ×ÊÇʲôԭÒò
named.conf
options {
directory "/etc/namedb";
forward only;
};
zone "." {
type hint;
file "named.root";
};
zone "wgczx.com" {
type master;
file "wgczx.com.hosts";
};
zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "localhost.rev";
};
zone "84.4.218.IN-ADDR.ARPA" {
type master;
file "84.4.218.rev";
};
localhost.rev
$TTL 3600

@ IN SOA dns.wgczx.com. root.dns.wgczx.com. (
20030216 ; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS dns.wgczx.com.
1 IN PTR localhost.wgczx.com.
wgczx.com.hosts
$TTL 3600

@ IN SOA dns.wgczx.com. root.dns.wgczx.com. (
20030216 ; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS dns.wgczx.com.
www IN A 218.4.84.218
mail IN A 218.4.84.222
84.4.218.rev
$TTL 3600

@ IN SOA dns.wgczx.com. root.dns.wgczx.com. (
20030216 ; Serial
3600 ; Refresh
900 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS dns.wgczx.com.
218 IN PTR dns.wgczx.com.
218 IN PTR [url]www.wgczx.com.[/url]
222 IN PTR mail.wgczx.com.
rc.conf
kern_securelevel_enable="NO"
nfs_reserved_port_only="NONE"
sendmail_enable="NONE"
sshd_enable="NONE"
usbd_enable="YES"
ifconfig_vr0="inet 218.4.84.218 netmask 255.255.255.248"
defaultrouter="218.4.84.217"
hostname="dns.wgczx.com"
named_enable="YES"
inetd_enable="YES"
hosts
# $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $
# First try the /etc/hosts file
hosts
# Now try the nameserver next.
bind
# If you have YP/NIS configured, uncomment the next line
# nis

rianren ·¢±íÓÚ 2004-2-18 10:21

¼ÓÈëhostsºóÐв»ÐУ¿

beini2001 ·¢±íÓÚ 2004-2-24 08:23

Ò²»¹ÊDz»ÐÐ

Ò³: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.