《NetBSD指南-25.2.4./etc/namedb/diverge.org》

NetBSD用户指南中文版、NetBSD pkgsrc指南中文版...

版主: lionux

主题已锁定
头像
leo
帖子: 2465
注册时间: 2010-01-21 3:27

《NetBSD指南-25.2.4./etc/namedb/diverge.org》

帖子 leo » 2010-03-08 1:27

This zone file is populated by records for all of our hosts. Here is what it looks like:

代码: 全选

 1| $TTL    3600
 2| @              IN SOA  strider.diverge.org. root.diverge.org. (
 3|                         1       ; serial
 4|                         8H      ; refresh
 5|                         2H      ; retry
 6|                         1W      ; expire
 7|                         1D )    ; minimum seconds
 8|                 IN NS   strider.diverge.org.
 9|                 IN MX   10 strider.diverge.org.   ; primary mail server
10|                 IN MX   20 samwise.diverge.org.   ; secondary mail server
11| strider         IN A     192.168.1.1
12| samwise         IN A     192.168.1.2
13| www             IN CNAME samwise.diverge.org.
14| worm            IN A     192.168.1.3

There is a lot of new stuff here, so lets just look over each line that is new here:

Line 9
[INDENT]This line shows our mail exchanger (MX), in this case it is "strider". The number that precedes "strider.diverge.org." is the priority number, the lower the number their higher the priority. The way we are setup here is if "strider" cannot handle the mail, then "samwise" will.[/INDENT]

Line 11
[INDENT]CNAME stands for canonical name, or an alias for an existing hostname, which must have an A record. So we have aliased the following:

http://www.diverge.org to samwise.diverge.org[/INDENT]
The rest of the records are simply mappings of IP address to a full name (A records).

主题已锁定

在线用户

正浏览此版面之用户: 没有注册用户 和 1 访客