动网论坛,站长建站首选,国内使用量最多的论坛软件 动网论坛官方技术讨论区 站长工具 申请属于您自己的免费论坛
首页 | 新闻资讯 | 网站运营 | 网络编程 | 数据库 | 服务器 | 网页设计 | 图像媒体 | 网络应用 | 搜索优化 | 资源下载 | 动网主机 | DVBOX
    本站内  互联网 ASP论坛  ASP.Net论坛  PHP论坛
   服务器 → 阅读文章
  

 Solaris网络管理培训(第四章:DNS客户端的设置)

作者来源: 
阅读 数 296 人次 , 2006-4-4 2:40:00 

/etc/resolv.conf文件
记录DNS服务器的地址和域名
关键字:
domainname
nameserver
# more /etc/resolv.conf
nameserver 172.16.255.3
domainname sunrise.com.cn

/etc/nsswitch.conf文件
记录主机名的搜索顺序等信?nbsp;
# more /etc/nsswitch.conf
#
# /etc/nsswitch.dns:
#
# An example file that could be copied over to /etc/nsswitch.conf; it uses
# DNS for hosts lookups, otherwise it does not use any other naming service.
#
# "hosts:" and "services:" in this file are used only if the
# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.

passwd: files
group: files
# You must also set up the /etc/resolv.conf file for DNS name
# server lookup. See resolv.conf(4).
hosts: files dns
ipnodes: files



将这个文件的hosts记录配置成hosts: files dns

nslookup命令
用于查询DNS服务器
用于验证客户端的设置
用于下载DNS数据库

# nslookup
Default Server: ns.zjhzptt.net.cn
Address: 202.96.96.68

> www.sun.com
Server: ns.zjhzptt.net.cn
Address: 202.96.96.68

Non-authoritative answer:
Name: www.sun.com
Address: 192.18.97.241

>
启动时,nslookup缺省地以本地服务器为目标。响应中包括目标服务器的名字和地址。>是提示符,这意味着可以开始发送名字服务询问或配置。
 本文Tags组网  
 收藏本文  打印本文  论坛讨论  关闭窗口
· 上一篇:Solaris系统管理培训(第七章:系统安全)
· 下一篇:Solaris如何在reboot后增加和改变系统硬件
· 文件系统的备份与恢复(ufsdump ufsrestore)
· Apache服务器的安全性及实现(3)
· 令人振奋的Windows 2000桌面环境
· Unix系列shell程序编写
· ASP入门与实例---IIS的安装与配置


关于本站 | 联系我们 | 业务合作 | 客户案例 | 诚聘英才 | 广告合作 | 收藏本站
海口动网先锋网络科技有限公司版权所有
Copyright © 2000 - 2006 Cndw.Com
中华人民共和国电信与信息服务业务经营许可证编号 琼 ICP 020077