独学而无友,则孤陋而寡闻!
分类: BSD
2007-08-26 22:36:08
fx# cd /etc/namedb/ && ee named.conf |
options { directory "/etc/namedb"; pid-file "/var/run/named/pid"; dump-file "/var/dump/named_dump.db"; statistics-file "/var/stats/named.stats"; listen-on {192.168.1.5; }; }; zone "." { type hint; file "named.root"; }; zone "1.168.192.IN-ADDR.ARPA" { type master; file "master/test.rev"; }; zone "test.com" { type master; file "master/test.com"; }; |
fx# cd /etc/namedb/master/ && ee test.rev |
$TTL 3600 1.168.192.in-addr.arpa. IN SOA ns1.test.com. root.ns1.test.com. ( 20070825 ; Serial 3600 ; Refresh 900 ; Retry 3600000 ; Expire 3600 ) ; Minimum IN NS ns1.test.com. 17 IN PTR ns1.test.com. 18 IN PTR ns2.test.com. 254 IN PTR mail.test.com. |
fx# cd /etc/namedb/master/ && ee test.com |
$TTL 3600 ; 1 hour test.com. IN SOA ns1.test.com. admin.test.com. ( 2006051501 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 86400 ; Minimum TTL ) ; DNS Servers IN NS ns1.test.com. IN NS ns2.test.com. ; MX Records IN MX 10 mx.test.com. IN MX 20 mail.test.com. ; Machine Names localhost IN A 127.0.0.1 ns1 IN A 192.168.1.17 ns2 IN A 192.168.1.18 mx IN A 192.168.1.33 mail IN A 192.168.1.254 ; Aliases www IN CNAME @ |
fx# /etc/rc.d/named forcestart |