📄 391.html
字号:
<STYLE type=text/css>
<!--
body,td { font-size:9pt;}
hr { color: #000000; height: 1px}
-->
</STYLE>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD><TITLE>精选文章 >> solaris 专栏 >> 双网卡DNS配置手记 </title>
</head>
<body >
<p><IMG SRC="../image/jsp001_middle_logo.gif" WIDTH="180" HEIGHT="60" BORDER=0 ALT=""></p>
<table width=100% bgcolor="#cccccc" align=center cellpadding="2" cellspacing="0" border=1 bordercolorlight="#000000" bordercolordark="#FFFFFF">
<tr bgcolor="#EFF8FF"><td>
<a href=http://www.jsp001.com/list_thread.php?int_attribute=2>精选文章</a>
>> <a href=http://www.jsp001.com/list_thread.php?forumid=39&int_attribute=2>solaris 专栏</a>
>> 双网卡DNS配置手记 [<a href=http://www.jsp001.com/forum/showthread.php?goto=newpost&threadid=391>查看别人的评论</a>]<br>
<hr><p>由 fei 发布于: 2001-02-12 15:18</p><p> </p><p>作者&#9658; 金毅 <br>1.创建/etc/resolv.conf<br>domain piecust.jsol.net<br>nameserver 10.113.13.253<br>nameserver 10.100.0.3<br>nameserver 202.96.209.5 <br><br>2.创建/etc/nsswitch.conf<br># /etc/nsswitch.files:<br>#<br># An example file that could be copied over to /etc/nsswitch.conf; it<br># does not use any naming service.<br>#<br># "hosts:" and "services:" in this file are used only if the<br># /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.<br><br>passwd: files<br>group: files<br>hosts: files dns<br>networks: files<br>protocols: files<br>rpc: files<br>ethers: files<br>netmasks: files<br>bootparams: files<br>publickey: files<br># At present there isn't a 'files' backend for netgroup; the system will<br># figure it out pretty quickly, and won't use netgroups at all.<br>netgroup: files<br>automount: files<br>aliases: files<br>services: files<br>sendmailvars: files <br><br> 以上是作为一个客户端或服务器端必须设置的。 <br><br>3.设置BOOT文件/etc/named.boot<br>directory /etc/dns<br>cache . named.ca<br>primary piecust.jsol.net<br>primary 13.113.10.in-addr hosts.rev<br>primary 0.0.127.in-addr named.local <br><br>4.建立DNS目录,创建一系列文件 <br><br>5./etc/dns/named.ca<br>. 3600000 in NS sune450.piecust.jsol.net. sune450.piecust.jsol.net. 3600000 A 10.113.13.253 <br><br>6./etc/dns/named.soa<br>@ IN SOA sune450.piecust.jsol.net. root.sune450.piecust.jsol.net. ( 20000309 10800 1800 3600000 86400 ) IN NS sune450.piecust.jsol.net. <br><br>7./etc/dns/hosts<br>$ include named.soa<br>localhost IN A 127.0.0.1<br>sune450 IN A 10.113.13.253<br>IN MX 10 piecust.jsol.net.<br>piecust.jsol.net. IN MX 10 sune450.piecust.jsol.net.<br>WWW IN CNAME sune450.piecust.jsol.net.<br>sunu10 IN A 10.113.13.252<br>sune450-in IN A 192.1.1.35 <br><br>8./etc/dns/hosts.rev<br>$ include named.soa<br>253 IN PTR sune450.piecust.jsol.net.<br>252 IN PTR sunu10.piecust.jsol.net. <br><br>9./etc/dns/named.local<br>$ include named.soa<br>1 IN PTR localhost. <br><br>10./etc/named.conf<br>options {<br>directory "/etc/dns";<br><br>};<br><br><br>zone "." in {<br>type hint;<br>file "named.ca";<br>};<br><br>zone "piecust.jsol.net" in {<br>type master;<br>file "hosts";<br>};<br><br>zone "13.113.10.in-addr.arpa" in {<br>type master;<br>file "hosts.rev";<br>};<br><br>zone "0.0.127.in-addr.arpa" in {<br>type master;<br>file "named.local";<br>};<br><br><br>11.初始化<br>#/usr/sbin/in.named <br> <br></p></td>
</tr>
</table>
<p>
<CENTER><a href="http://www.jsp001.com/forum/newreply.php?action=newreply&threadid=391">点这里对该文章发表评论</a></CENTER>
<p>该文章总得分是 <font color=red>0</font> 分,你认为它对你有帮助吗?
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=391&intVote=4","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>非常多</a>](<font color=red>0</font>)
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=391&intVote=2","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>有一些</a>](<font color=red>0</font>)
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=391&intVote=1","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>无帮助</a>](<font color=red>0</font>)
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=391&intVote=-1","","menubar=no,toolbar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no,width=70,height=40,top=0,left=0")>是灌水</a>](<font color=red>0</font>) </p>
<script language="javascript" src="http://www.jsp001.com/include/read_thread_script.php?threadid=391"></script>
<p><CENTER>
Copyright © 2001 - 2009 JSP001.com . All Rights Reserved <P>
<IMG SRC="../image/jsp001_small_logo.gif" WIDTH="85" HEIGHT="30" BORDER=0 ALT="">
</CENTER></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -