📄 00000001.htm
字号:
<BR> 在这个 linux.bogus 区域档案里我们将会放入一些完全虚拟的资料: <BR> <BR> <BR>______________________________________________________________________ <BR> ; <BR> ; Zone file for linux.bogus <BR> ; <BR> ; Mandatory minimum for a working domain <BR> ; <BR> @ IN SOA linux.bogus. hostmaster.linux.bogus. ( <BR> 199511301 ; serial, todays date + <BR>todays serial # <BR> 28800 ; refresh, seconds <BR> 7200 ; retry, seconds <BR> 3600000 ; expire, seconds <BR> 86400 ) ; minimum, seconds <BR> NS ns.linux.bogus. <BR> NS ns.friend.bogus. <BR> MX 10 mail.linux.bogus ; Primary Mail <BR>Exchanger <BR> MX 20 mail.friend.bogus. ; Secondary Mail <BR>Exchanger <BR> <BR> localhost A 127.0.0.1 <BR> ns A 127.0.0.2 <BR> mail A 127.0.0.4 <BR> <BR>______________________________________________________________________ <BR> <BR> 在这个档案里有一种新的资源记录型态,即 MX 型态,或是邮件交换者 <BR> 资源记录(Mail eXchanger RR) 。这种资源记录型态告诉邮递系统地址 <BR> <A HREF="mailto:someone@linux.bogus">someone@linux.bogus</A> 的邮件要寄送到哪里,换句话说也就是应该寄送 <BR> 到 mail.linux.bogus 或是 mail.friend.bogus。在每个机器名称前面 <BR> 的数字是 MX 资源记录的优先权,数字比较低 (10) 的资源记录是邮件 <BR> 主要应该寄往的机器。如果失败可以把它寄往数字比较高的机器,一台 <BR> 次要的邮件处理者,如在这里具有优先权 20 的 mail.friend.bogus。 <BR> <BR> 藉由执行 ndc restart 重新起始 named 。以 nslookup 检验结果: <BR> <BR> $ nslookup <BR> > set q=any <BR> > linux.bogus <BR> Server: localhost <BR> Address: 127.0.0.1 <BR> <BR> linux.bogus <BR> origin = linux.bogus <BR> mail addr = hostmaster.linux.bogus <BR> serial = 199511301 <BR> refresh = 28800 (8 hours) <BR> retry = 7200 (2 hours) <BR> expire = 604800 (7 days) <BR> minimum ttl = 86400 (1 day) <BR> linux.bogus nameserver = ns.linux.bogus <BR> linux.bogus nameserver = ns.friend.bogus <BR> linux.bogus preference = 10, mail exchanger = <BR>mail.linux.bogus.linux.bogus <BR> linux.bogus preference = 20, mail exchanger = <BR>mail.friend.bogus <BR> linux.bogus nameserver = ns.linux.bogus <BR> linux.bogus nameserver = ns.friend.bogus <BR> ns.linux.bogus internet address = 127.0.0.2 <BR> mail.linux.bogus internet address = 127.0.0.4 <BR> <BR> 由小心地检验你将会发现一个错误。这一行 <BR> <BR> linux.bogus preference = 10, mail exchanger = <BR>mail.linux.bogus.linux.bogus <BR> <BR> 全都错了。它应该是 <BR> <BR> linux.bogus preference = 10, mail exchanger = <BR>mail.linux.bogus <BR> <BR> 我故意犯了个错误所以你可以藉此学习:-)仔细看看该区域档案我们 <BR> 会发现这一行 <BR> <BR> @ MX 10 mail.linux.bogus ; Primary Mail <BR>Exchanger <BR> <BR> 遗漏了一个句点。或是说多了个 `linux.bogus' 。在区域档案里如果 <BR> 一个机器名称不是以句点结尾那麽会在其结尾加入基点。所以不论是 <BR> <BR> <BR>______________________________________________________________________ <BR> @ MX 10 mail.linux.bogus. ; Primary Mail <BR>Exchanger <BR> <BR>______________________________________________________________________ <BR> <BR> 或者是 <BR> <BR> <BR>______________________________________________________________________ <BR> @ MX 10 mail ; Primary Mail <BR>Exchanger <BR> <BR>______________________________________________________________________ <BR> <BR> 都是正确的。我比较喜欢後面这种形式,它需要的打字比较少。在一个 <BR> 区域档案里领域名称应该要不就是写出来并以 `.' 结尾或者就是一点 <BR> 都不要包含进去,而在这种情况下其领域预设为基点。我必须强调的是 <BR> 在 named.boot 档案里领域名称後面不应该有 `.' 的存在。你不知道 <BR> 有多少次因为多了或少了一个 `.' 而砸锅并且对许多人造成困扰。 <BR> <BR> 所以在加入我强调的重点後这里是一份新的区域档案,其中还包含一些 <BR> 额外的资讯: <BR> <BR> <BR>______________________________________________________________________ <BR> ; <BR> ; Zone file for linux.bogus <BR> ; <BR> ; Mandatory minimum for a working domain <BR> ; <BR> @ IN SOA linux.bogus. hostmaster.linux.bogus. ( <BR> 199511301 ; serial, todays date + <BR>todays serial # <BR> 28800 ; refresh, seconds <BR> 7200 ; retry, seconds <BR> 604800 ; expire, seconds <BR> 86400 ) ; minimum, seconds <BR> <BR> NS ns ; Inet Address of name <BR>server <BR> NS ns.friend.bogus. <BR> MX 10 mail ; Primary Mail Exchanger <BR> MX 20 mail.friend.bogus. ; Secondary Mail <BR>Exchanger <BR> <BR> localhost A 127.0.0.1 <BR> ns A 127.0.0.2 <BR> mail A 127.0.0.4 <BR> ; <BR> ; Extras <BR> ; <BR> @ TXT "Linux.Bogus, your DNS consultants" <BR> <BR> ns MX 10 mail <BR> MX 20 mail.friend.bogus. <BR> HINFO "Pentium" "Linux 1.2" <BR> &nb
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -