êμ?éò?£o′??¨DNS·t???÷
ò??¢êμ?é??μ?£o
¢ù °2×°bind èí?t°ü
¢ú ???????t
¢? ?a?????t
¢ü ó?nslookup2aê?
?t?¢êμ?é?·?3£o
1.ó2?t?·?3
ò?ì¨PC?ú?¢ò????í′??·óé?÷?¢ò???μ÷???aμ÷?÷
2.èí?t?·?3
Red Hat Linux 2ù×÷?μí3
èy?¢êμ?é2??è£o
1. 2é?′bind èí?t°ü
# rpm ¨Cqa | grep bind 2é?′bindèí?t°üê?·?ò??-×°o?
# service named start ???ˉDNS·t??
2. ??è??÷???????t£????y?ò?a??oí·′?ò?a????DD????
# vi /etc/named.conf
???????t??ê?£o
zone ?°aaa.com?± IN {
type master;
file ?°aaa.com.dns?±;
};
zone ?°1.168.192.in-addr.arpa?± IN{
type master;
file ?°1.168.192.dns?±;
allow-update {none;};
};
3.?a?????t
# cd /var/named
# ls
# cp named.local aaa.com.dns °?named.local?Dμ??úèY?′??μ?aaa.com.dns???t?D
# cp named.local 1.168.192.dns °?named.local?Dμ??úèY?′??μ?1.168.192.dns???t?D
# vi aaa.com.dns ?y?ò?a??μ????????t??ê?
???????t??ê?£o
$ TTL 86400
@ IN SOA (
19970220700 ; Servial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS
www IN A 192.168.1.150
# vi 1.168.192.dns ·′?ò?a??μ????????t??ê?
???????t??ê?£o
$ TTL 86400
@ IN SOA (
19970220700 ; Servial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS
150 IN PTR
4.2aê?
# service named reload ??D??ó??named
# ping 2aê?ê?·??üpingí¨óò??
# nslookup ó?nslookup2aê?ê?·??ü?à?¥?a??
±???3?×? ?°??ê???ì3?± 2??í£?D???×a??£?
±???3?×? 51CTO.COM??ê?2??í