Linux中国 Linux中国门户站!
设为主页 设为主页
收藏本站 收藏本站
 
当前位置 :首页 ->操作系统 ->Solaris ->正文

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

来源:Linuxdby.com 作者:Webmaster 时间:2007-05-26 点击: [收藏] [投稿]

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

/etc/nsswitch.conf文件 
记录主机名的搜索顺序等信息 
# 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缺省地以本地服务器为目标。响应中包括目标服务器的名字和地址。>是提示符,这意味着可以开始发送名字服务询问或配置。 


 如果您对本文有任何疑问或者建议,请到讨论区发表您的意见: >> 论坛入口 <<



上一篇:Solaris网络管理培训(第三章:路由和网关)   下一篇:安装 Solaris 後的设定

文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论
更多相关文章
Power by linux-cn.com 粤ICP备05006655号