📄 366.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 专栏 >> 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>
>> solaris DNS客户端设置 [<a href=http://www.jsp001.com/forum/showthread.php?goto=newpost&threadid=366>查看别人的评论</a>]<br>
<hr><p>由 fei 发布于: 2001-02-12 13:36</p><p> </p><p>在SUN机器上设置DNS客户端需要二个步骤: <br>1.创建/etc/resolv.conf文件<br><br>一个示例的resolv.conf文件如下:<br><br>domain sun.com<br>nameserver 127.0.0.1<br>nameserver 192.1.0.11<br>nameserver 192.1.0.10<br><br>文件中主要包含二部分内容,第一行是<br>domain 你申请的域名,例,申请域名为piecust-cn.net.edu.cn,则写为:<br>domain piecust-cn.net.edu.cn<br><br>第二行是名称服务器,示例表示本机就是DNS服务器,其格式为<br>nameserver IP地址,该段可以是DNS的主域名称服务器、备份域名称服务器或缓冲名称服务器,但是书写时不可以超过3个服务器。如果网络中只有一个DNS服务器且地址为192.1.0.11,则可以写为:<br>nameserver 192.1.0.11<br><br> <br><br>2.修改/etc/nsswitch.conf,是客户机能够使用DNS服务<br><br>SUN客户机缺省使用files作为服务器名字的解析,为了使用DNS名称解析服务器,必须在/etc/nsswitch.conf指明使用DNS服务。<br><br>#<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 dns<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>如上例,只要在hosts一项添加dns项就可以<br><br></p></td>
</tr>
</table>
<p>
<CENTER><a href="http://www.jsp001.com/forum/newreply.php?action=newreply&threadid=366">点这里对该文章发表评论</a></CENTER>
<p>该文章总得分是 <font color=red>0</font> 分,你认为它对你有帮助吗?
[<a href=javascript:void(0) onclick=window.open("http://www.jsp001.com/forum/codeVote.php?threadid=366&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=366&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=366&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=366&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=366"></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 + -