2016年10月19日 星期三

DNS Server 設定

named.conf:
zone "test.com" IN {
type master;
file "zone.test.com";
};

zone "1.168.192.in-addr.arpa" IN {
type master;
file "zone.192.168.1";
};

zone.test.com:
$TTL 600
@ IN SOA host.test.com. root.test.com. ( 20161001 1H 2D 1W 10 )
@ IN NS dns.test.com.
@ IN A 192.168.1.1
@ IN MX 10 mail.test.com.
dns.test.com. IN A 192.168.1.1
mail IN A 192.168.1.1
www IN A 192.168.1.1

zone.192.168.1:
$TTL 600
@ IN SOA host.test.com. root.test.com. ( 20161001 1H 2D 1W 10 )
@ IN NS dns.test.com.
1 IN PTR dns.test.com.
1 IN PTR host.test.com.
1 IN PTR mail.test.com.

沒有留言:

張貼留言